LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining a Length in Seconds into Date and Time Cluster output

Solved!
Go to solution

@emw129 wrote:

What is the Default 0 second Start date, isn't supposed to be January 1,1905 at 12:00am?  Why such an odd ball date?  Why not 0000 AD at 12:00am?  Or is there too much missing time during the Dark Ages to be sure of when 0000 AD at 12:00am really was?

 

However when I do the calculation I end up getting 1905 added to the results, I have manually calculated the time span, I just trying to confirm that my calculations are in alignment with the LabView/PC Date time keeping system.  And if the complex rules involving Leap Year are effecting the end result.  Remember, I'm calculating time span, not date and time.  But I must subtract out date and time of 2G seconds to determine the time span of 2 billion seconds.  Otherwise the 1905 time enters into the result.


The reason is that computer used to be a lot smaller and weaker with tiny memories, so 1904 was chosen so 1 U32 could reach all the way to ~2050 in seconds and avoid the leap year of 1900 which would have required several line of code extra. Now it's a remnant, and you could argue that 0 should be 632AD ...

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 31 of 31
(361 Views)