7 ms·
What is wrong with standard unix timestamps?
by da4c30ff 13y ago
What is wrong with standard unix timestamps?
- masklinn 13y agoNumbers, booleans, and null should be removed. What's wrong with using strings for every value?
- berdario 13y agoThere's not a bijection between UTC time and "standard unix timestamps" due to leap seconds if you encode TAI in a unix timestamp, this would be a solved problem, but due to the fact that you cannot encode the time zone in the "unix timestamp datatype", you'd also have to handle cases in which people chose another timezone. This makes it good enough for storing data (it'd be nice if the size of the data type would be explicit) but suboptimal for interoperability with other systems that could be using a different standard either you encode the timezone in a different field in your JSON, or someone (the JSON5 people?) could define a literal for timestamps like: t+1393752828Z (this would also eliminate the ambiguity between timestamps and number literals)