LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when add seconds to Time Stamp format

Solved!
Go to solution

Hi,

 

I've created a subVI that transform an string data/time to Time stamp format.

The subVI seems that it works fine, but when I use the data 26/10/2014 and I add 1 day, it crashes! The result is 26/10/2014 23:00:00 instead of 27/10/2014 00:00:00.

 

 

Cordially

Vicen

0 Kudos
Message 1 of 5
(3,329 Views)

Hi vicens,

 

I don't think your VI crashes - it just outputs an unexpected result. Quite a difference…

 

What is the timestamp before you add 86400s to it?

 

Here's the result on my computer:

check.png

Looks ok to me…

 

Which timezone is your computer set to?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(3,321 Views)

Hi GerdW,

 

You are right. The VI outputs an unexpected result when... ONLY the timestamp is 26/10/2014 or concerns this timestamp .

My timezone is SPAIN.

 

 

Thank a lot.

Vicen

 

LV 2010/2011 on WinXP/Win7

 

0 Kudos
Message 3 of 5
(3,294 Views)

October 26th 2014 was the daylight saving time change in Spain.

 

Ben64

Message 4 of 5
(3,286 Views)
Solution
Accepted by topic author vicens

Thank you both!

 

I think I've solved the problem.

 

solve.png

 

Vicen

LV 2010/2011 on WinXP/Win7

 

0 Kudos
Message 5 of 5
(3,233 Views)