LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the 'to timestamp' function

Hi,
 
I have a question about the 'to timestamp' function.  I know it takes a number and turns it into a timestamp, but what format must the number be in?  I have a number 95429.690999 which is in the form
hhmmss.ssssss so it is 9:54 and 29.690999 seconds which I want to turn into a timestamp but if I feed it into the 'to timestamp' function I just get garbage out.  Any help would be much appreciated. 
 
Thanks!
Intern NSWCCD Carderock.
0 Kudos
Message 1 of 4
(2,640 Views)

A timestamp is the number of seconds that passed since 01/01/1904 00:00:00 GMT (you could see that if you right-click the VI and select Help).

The Time & Dialog palette has a VI (Date\time to Seconds) that helps you convert a date\time cluster into a timestamp. You can get the different parts of the cluster by continuosly passing the number through series of Quotient & Remainder functions (divide by 10000 and you get 9) or by converting it to a string and parsing the string.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,632 Views)
Well, u could always use the "get date/time" and format it yourself... 🙂
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 3 of 4
(2,624 Views)
Thanks, got it.
Intern NSWCCD Carderock.
0 Kudos
Message 4 of 4
(2,621 Views)