3 ms·
Dates and times, floating point numbers, even strings... there will be always magic in how data is represented/encoded. Now in the case of dates, there's the e
by partycoder 10y ago
Dates and times, floating point numbers, even strings... there will be always magic in how data is represented/encoded.
Now in the case of dates, there's the epoch, and a precision determined in terms of that epoch, there are compatibility workarounds between 32-bit and 64-bit time... we add have leap days and leap seconds, and of course: the fact that clocks go out of sync, timezones and daylight saving time, as well as a long long list of things.
Some countries move dates for DST every year.
Then, there are days that "do not exist" (September 1752 in UK/US, etc, when they moved from the julian to the gregorian calendar).