Hacker News new | ask | show | jobs
by wang_li 3059 days ago
Why is everyone talking about storing data in a presentation format rather than an unambiguous format? Just because it's a log doesn't mean it's not a type of data that should be stored appropriately.
1 comments

Because integer (milli/nano)seconds since epoch isn't a human-readable format, and logs need to be read by humans, particularly under stressful conditions.
Furthermore, won't Unix time, the most common format, blow up in 2038?
It will overflow a 32 bit integer around that time. If you are using a 64 bit representation, then you'll be fine.
32 bit signed integer. Unsigned will be fine for a good while yet.