SCADA Basic : How To get a HDS Chrono

1 Posts
1 Users
0 Likes
17 Views
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
Topic starter
 

First of all, we need small explanations.

HDS Chrono is a FILETIME format which is representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).
Which SCADA Basic you have the function DATETIMEVALUE() with give you a number representing the number of milliseconds since January 1, 1970 (UTC).

Not the same unit, and not the same start date.
Now, with these few lines it's quite simple to find how to get a Chrono Value from SCADA Basic:

ChronoValue = DATETIMEVALUE()*10000 + 116444736000000000;
 
Posted : 16/08/2012 2:06 pm