On the Soapbox

« The real issue with Roe vs. Wade | Main | Wireless Everywhere »

Time/Date Format

Monday, January 23, 2006
Keywords: kBlog, Technology

I'm genuinely curious about this: what the heck were they thinking in RFCs 822 and 2822 when they set the format for date-time? Why does the format look like "Sun, 20 Oct 2002 23:47:15 GMT" instead of "2002/10/20 23:47:15 GMT"? Okay, the day-of-week is optional, thank goodness, but was it really necessary to force the use of named months instead of a numerical month? Why expend that extra effort (albeit not that much, but I guess it could add up if you're working with a lot of data and this was 1982) converting from a numerical value to text and back again? Not to mention, the burden added to the programmer. Imagine doing that with C. Not that it's difficult or time-consuming, but just one more annoying thing to have to take care of.

I just added support for "conditional GETs" to kBlog after noticing that Apache was logging script errors for the 304 response code, which meant that kBlog had to parse the If-Modified-Since line in the request header. Great. So it's either load an extra module (Date::Parse) or manually parse the string and feed it to POSIX::mktime. Neither of which is difficult thanks to power of Perl (this blog entry probably took just as long to do), but it's the principle of the matter: what good comes out of this inefficiency in the specification?

This entry was edited on 2006/01/23 at 02:10:29 GMT -0500.

Comments
Post a comment »

2006/01/23 14:54:55 GMT -0500Posted by Carl

I imagine one reason for this is that it helps to alleviate the confusion between how dates are represented in Europe and how dates are represented in the United States. For instance, the idiots over here believe that 3/7/06 is July 3, 2006, but we would interpret it as March 7, 2006.

2006/01/23 15:32:46 GMT -0500Posted by Kai

I thought about that as a possibility. As far as I know, there isn't a yyyy/dd/mm format, so yyyy/mm/dd shouldn't be confusing. In addition, these dates are almost always read and used by computer software and not by people (while this might not have been so when 822 was written, it certainly was when 2822 was produced).

Leave a Comment

Name:
E-mail Address: (not displayed)
Comment:

Auto-formatting notes: Please separate paragraphs with one or more blank lines (i.e., double line breaks; single line breaks will be converted to BR tags). URLs will be auto-linked. The following HTML tags are allowed:
A, ABBR, ACRONYM, ADDRESS, B, BIG, BLOCKQUOTE, CODE, EM, H[1-6], I, IMG, LI, OL, PRE, SMALL, STRIKE, STRONG, UL