Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_alternator_
27 days ago
|
parent
|
context
|
favorite
| on:
Axios compromised on NPM – Malicious versions drop...
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.
adrianN
27 days ago
|
next
[–]
Undefined behavior is worse than complicated defined behavior imo.
oasisbob
27 days ago
|
prev
[–]
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_
27 days ago
|
parent
[–]
Right. Currently epoch time is off the stopwatch time by 27 seconds.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: