by formalsystems · 5y ago · 0 comments
Such a representation naturally avoids the Y2K38 problem, and could go beyond Y10K. It's traditional in Windows and DOS (neither of which have the Y2K38 problem) to store timestamps as a structure of fields.
The other things you noted I agree with, however.
Plus, it's unambiguously human readable, for users, bystanders, platform developers, everyone. There's a useful usability principle in there.
https://docs.python.org/3/library/datetime.html#datetime.dat...
https://github.com/elastic/logstash/blob/v1.4.2/patterns/gro...
Please, everyone, use a single format at all times in your systems. I don't really care what it is, though I'm fond of `2021-01-14T06:28:08Z` because it's unambiguous. But don't just say "use ISO 8601", it's far too vague and you'll inevitably have variations.
Apparently the records were strictly sequential, which I don’t believe is true for Mongo which IIRC includes the node ID in part of it.
I could see the argument for representing impressions as a string (especially if it's updated asynchronously and denormalized like that). The major downside is localization.