3 ms·
Sort of. Unix time does not count leap seconds, all days are 86400 seconds long in Unix time. So the actual number of seconds since the epoch is a bit larger th
by bonzini 6y ago
Sort of. Unix time does not count leap seconds, all days are 86400 seconds long in Unix time. So the actual number of seconds since the epoch is a bit larger than what time() returns.
I don't know how Windows deals with leap seconds (its epoch is in 1601 or something like that). Edit: it doesn't, the clock goes 1 second ahead of UTC and it's then fixed by NTP.
- pedrocr 6y agoSo time() is actually days since epoch with 1/86400 precision. That makes the Google solution to smear leap seconds with NTP instead of making them explicit make even more sense.