This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Obtaining the UTC Offset for a Timestamp in LabVIEW

Updated Mar 2, 2018

Reported In

Software

  • LabVIEW

Issue Details

LabVIEW stores the time in UTC (Universal Time Coordinated) format, but displays the time in Local Time format. Is it possible to obtain the difference between local time and UTC time for a given computer?

Solution

Yes. You can take Daylight Saving and Time zone into account to compute the offset in seconds from UTC Time to the Local time (as specified by the computer). There is a great example program on how to convert a time stamp from UTC to local and back.