3 ms·
Couldn't you have the best of both worlds by just augmenting timestamps to be <UTC seconds, count of leap seconds elapsed> ? That way you still get the easy mo
by smallnamespace 10y ago
Couldn't you have the best of both worlds by just augmenting timestamps to be <UTC seconds, count of leap seconds elapsed> ?
That way you still get the easy modular arithmetic, but an application that expects monotonic time still sees it (simply locally sum the two fields).
- rspeer 10y agoCool. That actually seems like a good idea, unlike the "leap seconds are just time zones, what's the problem" one. Now you're just left with the practical problem of changing the representation of timestamps. (It's not even that the Unix timestamp representation was short-sighted. Unix was invented before leap seconds.)