LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time/date string to timestamp

Solved!
Go to solution

Hi John,

 

and why do you mark your answer as solution then? Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 21 of 27
(1,522 Views)

Gerd,

 

I know this is an old post, but how did you get the timestamp in that cluster format?

 

Jim

Jim

LV 2020
0 Kudos
Message 22 of 27
(1,364 Views)

Look in the timing palette.  You will find a Rec Time to Timestamp and visa versa.  I don't have LabVIEW with me, so I'm a little shakey on the exact wording of the funtion.  Anyways, those functions will convert a huge cluster with month, day, year, DST?, seconds, fractional sections, etc. into a timestamp and back again.  You can right click on one of those inputs/outputs and create a constant.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 23 of 27
(1,358 Views)

Maybe my pallettes are messed up.  I have a number to timestamp and date/time to string, but I can't find anything that uses that cluster.

Jim

LV 2020
0 Kudos
Message 24 of 27
(1,345 Views)

use the quickdrop and search for "Date/Time To Seconds"

0 Kudos
Message 25 of 27
(1,338 Views)

Hi Imtis,

 

your "Time" palette should look like that:

check.png

Use the marked function...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 26 of 27
(1,328 Views)

Thank you Gerd.

Jim

LV 2020
0 Kudos
Message 27 of 27
(1,317 Views)