Obligatory comment about people born on February 29, etc.
A massive outage in Microsoft’s own hosting system Azure may have been due to the leap day was a good reminder that for computers, our Gregorian-based calendar is difficult.
What we think are simple calculations, for example the number of hours between two dates, can be quite difficult. How many days you have in each month? What about moving forward or backward one hour due to daylight savings time? And I’m not even going to talk about converting from me time zone to another when both are affected by daylight savings. Come to think about it, those questions are difficult independently of if they’re being made on a computer or not.
That’s why I consider logging files on a computer using anything but either Unix epoch time or pseudo UTC (based on epoch) unaffected by leap seconds to be sacrilegious. I’ve done my fair share of using countless 3rd party libraries to do time computation, and in the end I don’t think it’s worth when those dates are not UI-facing. So, epoch FTW!
Published on February 29, 2012 at 14:56 EST
Older post: Tiny Reads
Newer post: Goodbye .com