Article View: news.software.nntp
Article #81293Datetime pedantry (was: Re: Cleanfeed Update)
From: Antti-Juhani Kaijanaho
Date: Sat, 06 Jun 2009 05:53
Date: Sat, 06 Jun 2009 05:53
42 lines
2827 bytes
2827 bytes
John F. Morse kirjoitti:
>> $Id: cleanfeed 227 2009-06-05 11:49:33Z cleanfeed $
[..]
> The problem I see in that string, is the date is ambiguous. For
> instance, is it "American" or "European"? (It even conflicts with the
> totally backwards and mixed attribute format used by your slrn.)
That date format is neither American (mm/dd/yyyy) nor European
(dd.mm.yyyy). It is the International Standard (yyyy-mm-dd), and
therefore there is no ambiguity (in other words, if you see someone use
a date format yyyy-dd-mm, feel free to use a cluebat.)
> The question arises: is it May 6, or is it June 5?
Given the above - no, it doesn't.
> To make it unambiguous, I'd suggest the "big-endian" format, which is
> the ISO 8601 format, placing the most significant data first:
Um, the string above *is* in a ISO 8601 format. (Except that it's
missing a "T" in the middle, but people don't usually care about that.)
> YYYYMMDD HHMMSS Z (hyphens were not used here for any clarity, and they
> not required http://en.wikipedia.org/wiki/ISO_8601#General_principles )
If you want to be a pedant, you should add a "T" there (yyyymmddThhmmssZ).
I note that in my experience, the hyphens do add clarity.
> The hyphens actually create confusion as mentioned above. Without them,
> there should never be any question whether ISO 8601 ("big-endian") dates
> are used.
I don't see how the hyphens cause any confusion that omitting them would
cure. Either way, either it's an ISO date, or someone is confused.
(And I note that the Wikipedia page you referred to actually claims that
using the hyphen-less format is discouraged because it creates confusion.)
--
Mr. Antti-Juhani Kaijanaho, Jyväskylä, Finland
Technical Details
Message-ID:
<78uej4F1o243oU1@mid.individual.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnh2i35j.77m.steve@news.mixmin.net> <h0bbbv$6mu$2@aioe.org> <slrnh2ins3.77m.steve@news.mixmin.net> <h0btbi$dhd$1@optima7.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <78uej4F1o243oU1@mid.individual.net> Subject: Datetime pedantry (was: Re: Cleanfeed Update) Date: Sat, 06 Jun 2009 08:53:39 +0300 From: Antti-Juhani Kaijanaho <antti-juhani@kaijanaho.fi> References: <slrnh2i35j.77m.steve@news.mixmin.net> <h0bbbv$6mu$2@aioe.org> <slrnh2ins3.77m.steve@news.mixmin.net> <h0btbi$dhd$1@optima7.xanadu-bbs.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 42 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net O72pcUiul/xGC61hqQpTAAA947ZcY7e9tOwb/bWUrhGga3cwo5 Cancel-Lock: sha1:LITmvNCYxydaEn5tXcX6yMZvh3w= User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: <h0btbi$dhd$1@optima7.xanadu-bbs.net>