5 ms·
> Unix timestamps are thoroughly and unnecessarily broken. They should be a continuum. If you assume that system time is a continuum I have some bad news for y
by azov 13y ago
> Unix timestamps are thoroughly and unnecessarily broken. They should be a continuum.
If you assume that system time is a continuum I have some bad news for you: system time is actually a user preference. Users can change it any moment to whatever they feel like, no time machine required. Given that, leap seconds are small potatoes. If you propose we change this and take away user's ability to set system time... well, there might be some merit in this from purely theoretical point of view, but in real world where batteries die, clocks get out of sync, and tons of software already rely on existing behavior - I don't think your proposal is likely to get very far :-)
Now, if you want a continuum, it's already there: look up CLOCK_MONOTONIC.