3 ms·
Unix timestamp assumes there are exactly 86400 seconds in a day. Or, in other words, if your timestamp is a multiple of 86400, it's midnight UTC. There are not
by growse 5y ago
Unix timestamp assumes there are exactly 86400 seconds in a day. Or, in other words, if your timestamp is a multiple of 86400, it's midnight UTC.
There are not alway 86400s in 1 day. Midnight is not a whole number of multiples of 86400 after Jan 1st 1970.
- deleted 5y ago[deleted]
- fivea 5y ago> There are not alway 86400s in 1 day. Midnight is not a whole number of multiples of 86400 after Jan 1st 1970. Isn't that an issue with the format you want to convert UNIX time to ? I mean, UNIX time is quite clearly and unambiguously defined as the number of seconds that passed since January 1st 1970. How are UTC's leap seconds any relevant?
- growse 5y ago> I mean, UNIX time is quite clearly and unambiguously defined as the number of seconds that passed since January 1st 1970. It's not though. Unix time is not monotonic. It goes backwards sometimes.