Dieser Inhalt liegt nicht in Ihrer bevorzugten Sprache vor.

Der Inhalt wird Ihnen in einer anderen verfügbaren Sprache angezeigt. Ihr Browser bietet ggf. Funktionen, die Sie bei der Übersetzung des Textes unterstützen.

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.