LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add hours to time stamp

Hi ,

I have to add hours to my time stamp control.
I unbundle the time stamp cluster and get the hours, minutes, seconds , days..

To the hours , i want to add hour. If i add an hour less than 12, i get correct output, BUt hour greter than 12, Time stamp does not show anything. How to build this. Suppose i add 24 hours, Time stamp should show next day, the same time..

Thank you,
hema
0 Kudos
Message 1 of 3
(3,736 Views)
May be you can convert time stamp to seconds, add seconds and convert back.
This should work in all cases.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 3
(3,729 Views)
Hello hema,

add just hours*3600 (to convert to seconds) to your timestamp without unbundle/bundle-operation.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(3,722 Views)