by kstenerud · 5y ago · 0 comments
Time is one of the most difficult things to get right in software engineering.
[1] https://github.com/kstenerud/compact-time/blob/master/compac...
[2] https://github.com/kstenerud/concise-encoding/blob/master/ct... and https://github.com/kstenerud/concise-encoding/blob/master/ce...
It's completely unambiguous in every context, and reads and sorts better for humans then any other format.
Since internet protocols are almost always talking in terms of events when it comes to time (and almost always in the past), RFC3339 is fine for its purpose. But for other uses of time it's not enough.
I did up a little summary of use cases here: https://github.com/kstenerud/compact-time/blob/master/compac...
I'll never understand why someone decided 02:00+01:00 should equal 01:00Z not 03:00Z.
Solving for UTC would then give UTC = CET-01:00. So if you want something equivalent to UTC without explicitly denoting the timezone it'd make more sense to denote 03:00 CET as 03:00-01:00 rather than 03:00+01:00.
I mean sure technically you're appending the timezone, but if you omit all the detail that makes it clear that it is a timezone then I just think it looks silly.
So, you have 02:00 in some local time, and you want to go to UTC? The change-of-basis transformation is "add 1 hour", because 01:00 (in UTC) plus 1 hour results in 02:00 (in local time), all perfectly reasonable, from an algebraist's point of view.
We should start calling them the "927 club".
Yes sometimes its overused, but that doesn't mean its never right.
The xkcd pretty neatly summarized the situation as of now. You developed and self-promote a new standard but do not explain why anyone should care.
They don't appear to be attempting to cover all use cases (in particular, it isn't trying to be human-readable), and crucially they don't appear to be proposing it as a standard.
Linked in context with other response points and it's a worthy reference, but dropped without much further discussion and the onus feels like it remains on you to justify it.