Hacker News new | ask | show | jobs
by CanSpice 4428 days ago
Except it shouldn't, because when you have a leap second occur, suddenly you're off by a second.

A day is a day, it's not 86400 seconds.

1 comments

Most operating systems and frameworks don't expose the concept of leap seconds to user code. For example, Unix time is the number of seconds since the epoch ignoring leap seconds, so a program that compares timestamps generated by time() would be correct in assuming that a day is 86400 units of time_t.