0xDECAFBAD

It's all spinning wheels and self-doubt until the first pot of coffee.

Quick Tales from a Busy Weekend

  • I wish I could find a cheap iPod car installation kit for my 2004 Ford Focus.

    No, not a lighter adapter for power and an iTrip--I already have those. I want one of those snazzy boxes that jack the iPod in as a CD changer. However, not only do they tend to cost as much as an iPod, but no one seems to offer one for my 2004 Ford Focus. :(

  • Why on Earth does the Google API use Julian dates?

    I could understand using Julian if, maybe, you wanted to catch things published before the birth of Christ. But, I would think that seconds since the Unix epoch would be more than adequate for anything web-related.

    But then again, I really don't know much about dates.

  • Also... it's been awhile since last I played with the Google API. What, no REST API? I was having fun with the Amazon and Yahoo APIs today, then ran into a wall of SOAP when I visited Google.

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.