Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
_alternator_
2mo ago
0 comments
Save
Share
Leap seconds are their own nightmare. UNIX time ignores them, btw, so that the unix epoch is 86400*number of days since 1/1/1970 + number of seconds since midnight. The behavior at the instance of a leap second is undefined.
0 comments
3 comments · 2 top-level
top
newest
oldest
oasisbob
2mo ago
· 1 in thread
That's a good way of describing that. It's far too easy to pretend UNIX timestamps would correspond to a stopwatch counting from 1/1/1970.
_alternator_
OP
2mo ago
Right. Currently epoch time is off the stopwatch time by 27 seconds.
adrianN
2mo ago
Undefined behavior is worse than complicated defined behavior imo.
j
/
k
navigate · click thread line to collapse