LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert GMT Time to Local time

Someone can help me..
I am reading the data from a GPS and its send me the GMT time, how I can convert this GMT time in Local Time using Labview7.0
Thank
0 Kudos
Message 1 of 7
(4,544 Views)

In LabVIEW 7.0 you might have some problems, but recent versions have a clear distinction of timezones. What code do you have allready?

Take a look at the time formatter strings available for 7.0 (I don't know which you have).

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 7
(4,536 Views)

In what format are you getting the time? As a string? Are you converting it to a timestamp? If so, you just need to add/subtract your time zone difference, in hours.

 

EDIT: Just saw the note on LV 7. I did not test the above in 7.0 as I don't have 7.0.

Message Edited by smercurio_fc on 01-07-2009 12:16 PM
0 Kudos
Message 3 of 7
(4,535 Views)

There's a post on LAVA with a VI to return your current time zone.  Add this to GMT from the GPS and Bob'll be your uncle.

 

Jim

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 7
(4,533 Views)

There's got to be a better way than this:

Message Edited by jcarmody on 01-07-2009 12:53 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 7
(4,520 Views)

Is this best?

Message Edited by jcarmody on 01-07-2009 01:13 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 6 of 7
(4,501 Views)

jcarmody wrote:

Is this best?

 


Probably. Except that I don't think %z is available for LabVIEW 7. In the LabVIEW 7.1 manual it mentions %Z, but not %z.

0 Kudos
Message 7 of 7
(4,492 Views)