4 ms·
But then we need to do something special for leap seconds. Despite what lots of people think, Unix time is not the number of seconds since 1st Jan 1970, since i
by rmc 14y ago
But then we need to do something special for leap seconds. Despite what lots of people think, Unix time is not the number of seconds since 1st Jan 1970, since it doesn't include the 30ish leap seconds that have been added since then.
- seiji 14y agoQuite true. Leap seconds cause an epoch repeat. Most minutes have 60 seconds (0-59), but leap seconds make a 61st second in a minute (0-60).
- ColinDabritz 14y agoTo be clear: It's not the "correct" wall clock time for most people's day to day use, because it only counts seconds that have elapsed since 1st Jan 1970 00:00 (in a continuous unbroken manner), and does not count leap seconds (which are added to keep our daily-use times in sync with the rotation of the earth.) Isn't time fun?
- aidenn0 14y agoSince leap seconds are scheduled relatively close to the time that they happen, that's the only way to allow representing future times.