|
|
|
|
|
by jstrong
2174 days ago
|
|
personally I think the mistake is trying to fit both purposes into a single format or type. as you state, it's a fundamentally different data type. representing a fixed moment in time is hard. representing a "floating" time of day is hard. trying to do both with the same type is pretty insane, but unfortunately common. |
|
Is the distinction in representation too subtle?
We accept this subtlety elsewhere; we are used to 0 and "0" being different things, and expect them to behave differently under operators. Few would find the following surprising:
Then why would we expect these to behave the same? The first is a fixed timestamp in UTC, the result of the second depends on timezone.