LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Date/Time <---> String



tst a écrit:

Actually, if I'm reading my calculator correctly, and allowing for it being a signed number, shouldn't that be about 275 billion years in each direction (and I realize I may be unnecessarily splitting hairs)? Anyway, I understood that this was already changed in 8, so that should be better.

And just to restate the point of the thread - we want a vi.lib String to Timestamp function!




They couldn't keep 32bits for the number of seconds because it would not have solved the 2038 limit. Jumping to 64bits was a natural choice, even if it leads to ridiculous ranges (2^-64 hasn't physical meaning either).
Quiz: which day of the week will the LabVIEW timestamp overlap? Smiley Wink


LabVIEW, C'est LabVIEW

0 Kudos
Message 11 of 19
(2,465 Views)

You can use the Scan time string function in my Time package. It accepts a format string like at the Format Date/Time function. Also does timezone handling.

http://robijn.net/labview

Joris

 

Message 12 of 19
(2,402 Views)
Hi all

How can i put the date/time function into this??
0 Kudos
Message 13 of 19
(2,085 Views)
Here is a vi that I use that converts some of my common date strings I get from a database query into a time stamp using the scan from string function.

To put the timestamps into a display like that you will need to change the type from a chart to a graph form.
If the time is not at constant intervals you will need an x-y graph type, see the help for more information on how to bundle time with Y values.
If the time is at constant intervals you can use a waveform graph type instead.


Message Edited by Karissa on 08-04-2008 02:10 AM
_______________________________________
Systems Test Engineer
Certified LabVIEW Architect (CLA)
Message 14 of 19
(2,077 Views)
Hi Karissa

Thanks for the example u gave. I was wondering if it is possible for me to use the numeric control to choose my year,month,day and hours instead of wat u sent me??

holla
0 Kudos
Message 15 of 19
(2,070 Views)

Hi holla,

where in your code you want to insert this Date Time function? To use controls for the day and time and ... you can create a cluster and transform it to a timestamp.

Mike



Message Edited by MikeS81 on 08-04-2008 09:44 AM
0 Kudos
Message 16 of 19
(2,063 Views)
Hi

When i press stop, it will prompt to save the file for example in notepad. So I want the time to be in the notepad. Leave the numeric buttons first

holla
0 Kudos
Message 17 of 19
(2,058 Views)

Hi holla,

do you meas as part of the values in the file or a part of the filename?

Hope it helps.
Mike

0 Kudos
Message 18 of 19
(2,048 Views)
Hi

Its as part of the values in the file.It something like this.
0 Kudos
Message 19 of 19
(2,044 Views)