LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get local time zone offset

Dear all,

 

I am using LV 2010 on Windows 7 and Windows XP.

 

My question: is there a reliable way of finding out the offset of the local time from UTC, that will work correctly all the time, taking daylight savings into account?

 

I've read various threads on the subject, but I'm none the wiser.


Thanks!

Zola

0 Kudos
Message 1 of 6
(5,382 Views)

Time Offset.png

 

It is not intuitive.  Gotta love the Timing palatte! But by casting into a date time record IS DST becomes one element of the record clusters pretty easy from there


"Should be" isn't "Is" -Jay
Message 2 of 6
(5,378 Views)

This code is not correct if UTC & Local Time is on different days & month. You have to consider also day of month & month.

Message 3 of 6
(5,135 Views)

better:

TimeZoneBias.png

Message 4 of 6
(5,125 Views)

Actually, in order to handle DST, I think you need something like this.

"If you weren't supposed to push it, it wouldn't be a button."
Message 5 of 6
(5,098 Views)

Helpful, thanks!

Scott Richardson
0 Kudos
Message 6 of 6
(237 Views)