LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add up the time and shows up to timestamps?

Solved!
Go to solution

 

Now, I have a 2 time String respectively is "Start Time" and "Usage Time"
I want to calculate both to get the "Finish Time"

Start Time + Usage Time = Finish Time

03/22/2018_11:11:06 + 00:01:03 = 03/22/2018_11:12:09

I tried to convert the both time of "Start Time" and "Usage Time" to timestamp, And add up both, After add up the both time the combine result cannot convert back timestamp.

How can i convert this result to timestamps?

 

Thanks!

Download All
0 Kudos
Message 1 of 3
(2,757 Views)
Solution
Accepted by topic author catwasicat

Your "Usage Time" is a relative time, not an absolute time. So you need to use the lower case "t" in the format string.

 

add run_time.pngFP Time.PNG

0 Kudos
Message 2 of 3
(2,748 Views)
Solution
Accepted by topic author catwasicat

Hi

 

Use the same format string as used to convert Start Time, to convert your timestamp data type back into a string.

 

 

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 3 of 3
(2,736 Views)