LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time stamp to number conversion

Hi All,

I notice in Labview 7.0 the 'Get Date/Time to Seconds' and 'Seconds to Date/Time' now output a Time Stamp rather than actual seconds.
There is a 'To Time Stamp" standard vi in the conversion pallet that converts a number (seconds) to a time stamp but I really need to convert from a Time Stamp to real seconds.
Does anyone have a vi that might do this or is there something already in LabVIEW 7.0 I have overlooked?

Many Thanks in Advance for your help.

Sammy Mason
0 Kudos
Message 1 of 7
(4,422 Views)
Use the Get Date/Time in Seconds widget.
Connect it to a "To Double Precision Float" conversion to get the time (since 1904) in seconds.

Les Hammer
Message 2 of 7
(4,419 Views)
Thank you very much for the help! 🙂

Sammy
0 Kudos
Message 3 of 7
(4,419 Views)
This does not work in LV 8. The result of the conversion is still a date time rec but now having doubles in stead if ints. 
0 Kudos
Message 4 of 7
(4,022 Views)
If I  need days I take the result and divide by 86400, the number of seconds in a day.  If you are working with UTC time stamps and you want to convert it dividing by the units it the only way i have seen.
 
What do you mean when you say you need seconds from the time stamp?  I have some time VI I have made that may be of some help if I understood what you were looking for.
 
Best Regards
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 5 of 7
(4,006 Views)

You are going to have to post an example where the conversion does not work.

Message Edited by Dennis Knutson on 05-05-2007 05:34 AM

0 Kudos
Message 6 of 7
(3,997 Views)

Dennis,

You're right! Think I was mixing up Time Stamp and Date Time Rec.

Thanks.

0 Kudos
Message 7 of 7
(3,979 Views)