3 ms·
And that's ridiculous. Outside of special cases like changes to DST rules, people expect to be able to perform arithmetic on dates and get results which don't v
by duskwuff 5y ago
And that's ridiculous. Outside of special cases like changes to DST rules, people expect to be able to perform arithmetic on dates and get results which don't vary over time, no more than other physical measurements and operations change over time.
- nine_k 5y agoAs long as you can afford a half-minute precision for an event 8.5 years ahead, you still can assume that simple datetime arithmetic works. This is ignoring the complexity of the reality. If you need a better precision, you store your date as a label saying "local midnight of January 1st 2030", and adjust its mapping to a particular number of seconds since epoch as time passes, or maybe do something even more complex. This is adjusting to the complexity of the reality. The third way, mandating the reality to not be complex, is not available.
- simondotau 5y agoIt's not ridiculous. One is a measurement of linear time, the other is a series of context-sensitive human labels tied to planetary movements. Conceptually they are not the same thing, even though we try very hard to make them the same.