LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time since 1/1/1904

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

0 Kudos
Message 1 of 3
(3,005 Views)

considering time zones in that calculation?  :dunno

0 Kudos
Message 2 of 3
(3,004 Views)

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,

Tom L.
0 Kudos
Message 3 of 3
(2,972 Views)