Does anyone know if Xojo’s Date class takes into account leap seconds? Specifically, does the Date.TotalSeconds function take into account the 26 leap seconds that have been added since 1972?
I could test this programmatically, but I’d like to know how it works at a higher level. Does Xojo consciously take leap seconds into account, or does it depend on each platform and the low level functions that are used on each platform to implement the Date class?
Xojo date will use whatever the computer uses for datetime
and I doubt there is a personal computer of any manufacture out there that is accurate down to the second in relation to any master Atomic clock, no matter how often you synch it up
[quote=208969:@Andres Cabezas]Specifically, does the Date.TotalSeconds function take into account the 26 leap seconds that have been added since 1972?
If your computer is synchronized by an Internet Time server, such service is usually piloted by an atomic clock that will be set to take the leap seconds into account.
Problem is, Internet has some lag time. So there is some imprecision involved.
Under normal circumstances, though, that lag will be way below 26 seconds.