KBD

Keith Devens .com

Friday, July 4, 2008 Flag waving
The function of wisdom is to discriminate between good and evil. – Cicero
← Entry 1673Entry 1675 →

Daily link icon Tuesday, March 19, 2002

Entry 1674

The only date formats that should be allowed to be displayed anywhere:

"19-Mar-2002" (usually preferred)
"2002-03-19" (ISO 8601) (also see this)
Some form of "Tuesday, March 19, 2002", "Tue, Mar 19, 2002", "March 19, 2002", etc. (human readable)
And maybe RFC2822 dates: "Tue, 19 Mar 2002 03:56:54 -0500" (is it also valid to have the three letter time zone code instead of the offset from GMT?) Update, darn, I just realized that these dates aren't necessarily fixed width... that darn FWS!

Obviously things like 20020319 are ok for machines to read, but the formats above are the only ones people should be expected to read.

Notice that I specifically didn't include things like "3/19/2002". The date happens to be unambiguous, since "19/3/2002" is still clear, but the first 12 days of every month aren't. Since half the world uses "day/month/year" and we in America use "month/day/year", if I give you 4/1/02, what's the date? Is it April first or January fourth? No dates should ever be displayed in either format on the Internet.

Anything I forgot? Oh, one more pet peeve. Whenever you give a time, always try to include the time zone! People on the Internet don't necessarily know where you are. And don't get me started on Beats (Sorry, "Internet time" - how pretentious).

And why people like stuff like "1998-05-12T14:15Z" (with the T in the middle) I'll never understand (maybe for machine readability?), although I don't mind the 'Z' (Zulu (zero) time - meaning UTC or GMT)

← Entry 1673Entry 1675 →

Comments XML gif

Adam Vandenberg wrote:

And DON'T GET ME STARTED on CMS sytems that show a leading 0 in days or months less than 10.

04-01-2002? No thanks!

∴ Adam Vandenberg | 19-Mar-2002 4:07am est | #127

Keith (http://www.keithdevens.com/) wrote:

No way, leading zeros => fixed width => good!

Though I still don't like having the year last in a format like that, since it makes me question whether the month or the day is really first (even though one would assume that it's in increasing order: day-month-year)

Keith | 19-Mar-2002 4:35am est | http://www.keithdevens.com/ | #128

Geek (http://www.geekblog.net) wrote:

Ummm, there are exceptions, like the popular use 09/11/2001. I think the world knows that. I, on the other hand, always date in short hand as DD.MM.YYYY. I just like the look of it, and I think it is good to go from shortest(the day) to longest(year, with the median in the middle. I see the American(and Canadian adopted) 'standard' to be confusing and moronic. I mean what idiot would put the month before the day? Am I going to organize my Hacks by that system? No. I have it like this /Hacks/2002/03/19.htm, and that makes sense to me and everyone I talk to. Doesn't it make sense to you?

∴ Geek | 20-Mar-2002 3:11am est | http://www.geekblog.net | #129

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

July 2008
SunMonTueWedThuFriSat
 12345
6789101112
13141516171819
20212223242526
2728293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 5 posts

Recent comments XML

Girls, please don't get breast implants

> And no, you will not be receiving​a picture.

:-(...

Keith: Jul 2, 6:05am

Javascript clone function

This is a clever way to clone an​object if you are using YAHOO UI.​Same tec...

Antonio: Jul 1, 12:47pm

I hate Norton Antivirus

Oh just one other thing norton is​great at keeping people out of your​compu...

kevin.sands: Jul 1, 12:50am

Terminator 3 was awful

I think the biggest reason why T3​totally blew was because Edward​Furlong g...

76.167.172.64: Jun 29, 3:06am

Generated in about 0.103s.

(Used 8 db queries)

mobile phone