LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to obtain time-stamp based on time-zone?

Solved!
Go to solution

hello all,

               i am trying to obtain the time-stamp based on the time-zone i assign in the computer... for ex. right now i m in CA, if I change the computer time-zone to EST, and use the Get Time/Date in Sec.vi, i still obtain the time in CA

and not the time acc to EST... how can i obtain the time as per the time on my laptop?

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 4
(2,769 Views)
Solution
Accepted by LV_Enthu

 I seem to remember vaguely that LV only reads this setting on load, so try restarting LV after changing the time zone and see if that helps.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,748 Views)

Another option would be to upgrade to a recent LabVIEW version. LabVIEW improved in that respect quite a bit, including support for timezone settings that match the settings of a timestamp even if it is in the past. I think 8.0 always used the timezone settings as configured for the current moment, even if the timestamp you wanted to convert into local time representation (the timestamp itself is ALWAYS stored as UTC value) had different summer start and stop times for instance. One caveat to this has to be mentioned, not all OS versions support timestamp correct timezone settings. I think Windows started with Vista to do that.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 4
(2,730 Views)

TST method works, u have to change the timestamp and then restart computer as labview reads the registry file related to the time when PC is booted, n i think that registry doesn't change

until u restart the computer... 

lame windows probably... 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 4 of 4
(2,696 Views)