News for hackers. Stuff that matters.
Re:OpenBSD Adds Support for Coordinated Mars Time (MTC) by bonzini on Thursday April 01, 2021 @04:57PM (#26665916)
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.

Re:OpenBSD Adds Support for Coordinated Mars Time (MTC) by pedrocr on Thursday April 01, 2021 @06:22PM (#26666976)
So 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.