What is TIMESTAMP UNSPECIFIED?|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
What is TIMESTAMP UNSPECIFIED?
Avatar
Vladimir Popov
Russia
New Member
Members
Forum Posts: 2
Member Since:
09/16/2021
sp_UserOfflineSmall Offline
1
12/21/2022 - 03:34
sp_Permalink sp_Print

Hello colleagues!

Now I am interested in the history read Raw service OPC UA.
The specification does not explicitly say what UNSPECIFIED is equal to.

In https://reference.opcfoundatio.....4/docs/6.4 part 6.4.3.1 says that startTime and endTime "Set to default value of DateTime.MinValue if no specific end time is specified".

Well we know that Datetime is a 64-bit signed integer, that is, Datetime.MinValue=-9223372036854775808?

But if you look here https://reference.opcfoundatio.....cs/5.2.2.5 it turns out that Datetime.MinValue=-1 (1601-01-01 12:00AM UTC)?

I have looked at various implementations of opensource projects and in them UNSPECIFIED is defined differently.

So is there a TIMESTAMP UNSPECIFIED?

Avatar
Randy Armstrong
Admin
Forum Posts: 1445
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
12/21/2022 - 08:17
sp_Permalink sp_Print sp_EditHistory

The formal definition of DateTime.MinValue is in Part 6:

https://reference.opcfoundatio.....docs/5.1.4

As you can see the exact definition changes depending on the development platform.

But the UABinary wire encoding will always be 0.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 26
Currently Browsing this Page:
2 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1347
Posts: 4567