Quick Tales from a Busy Weekend

Archived Comments

  • For some reason, a LOT of Internet APIs use Julian dates. HTTP cookies, for example. RFC-2822 is a very specific date format which high-level Internet protocols are supposed to use. One good reason to use RFC-2822 textual dates instead of UNIX epoch times is that they're totally unambiguous (because you know exactly what timezone they're in among other things), and also they won't totally bork up in 2038.
  • a whole slew of date calculations become easier with julian dates, in no small part because all the real calendar geeks are astronomers and they all use julian dates (kind of an open source argument). in particular the bible of date calculation, "Calendrical Calculations" by Reingold is all in Julian dates. this leads many date libs to use JD as their internal representation, which makes it easier to program in, etc.
  • kellan: Thanks - I knew there had to be *some* sensible reason for the dates. I tend to like UNIX epoch times, because they're just seconds--which mostly covers up for my complete ignorance and utter fear of calendar calculations brought on mostly by the Java APIs. Sometimes I like a good ISO-8601 date, although I've been paying more attention to RFC 2822 For the most part, I'd rather not think about it.
Quick-o-rama  Previous Hereditary Neophilia Next