10-29-2013 04:22 PM
How is time after 1/1/1904 calculated in LV? For instance, 3462378971334103 corresponds to 9/18/2013 2:56:17 PM in LabVIEW. I did my own calculation and got a different value: 9/18/2013 and a time near 7:00 PM. So I was wondering how NI comes up with its value?
Thanks,
Paul
10-29-2013 04:27 PM
considering time zones in that calculation? :dunno
10-29-2013 11:49 PM
Hello Paul,
Remember to check the help! Refer to this:
LabVIEW Help: Get Date/Time In Seconds Function
http://zone.ni.com/reference/en-XX/help/371361K-01/glang/get_date_time_in_seconds/
"Raw" timestamp values are in Universal Time/UTC, which is probably why your calculated result is a few hours ahead. Timestamp controls and indicators default to using absolute time format (%<>T) to present the data, which will show you local time-this can be modified in the object's properties, %^<>T will give you UTC. If you're worried about how the display will be interpreted, I'd suggest adding the %Z flag, which will add a "time zone" string to your indicator.
Regards,