

16:44, EEST

April 3, 2012

Hi,
As per javadocs, that method only supports parsing to the second level.
I believe the reason to be originating from https://reference.opcfoundatio…..1/#5.3.1.6, “A DateTime value is encoded as an xs:dateTime value.”,
https://www.w3schools.com/xml/…..s_date.asp only shows second-level resolution on xs:dateTime.
As a personal opinion, where possible, I would recommend to use Java 8 time APIs (e.g. java.time.Instant) instead, and do a conversion on the boundary where you call SDK methods. If you convert to DataValue use-cases, note that UA DateTime is resolution of 100s of nanoseconds (source and serverTimestamp), the rest is 10s of picoseconds (source and serverPicoseconds), see https://reference.opcfoundatio…..rt4/7.7.1/ for more info. Also read the javadocs of each methods in DateTime you call, since some assume java epoch (unix epoch) and others “UA Epoch” (or “windows epoch”;https://en.wikipedia.org/wiki/…..computing) ).
1 Guest(s)
