🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81304

Re: Datetime pedantry

#81304
From: John F. Morse
Date: Sat, 06 Jun 2009 21:00
107 lines
5285 bytes
Antti-Juhani Kaijanaho wrote:
> 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.)


That is not guaranteed.

The format I was speaking about is whether the month comes before the
day, as is common in America (which is big-endian -- if -- and a big
"if" -- you do not consider the out-of-place year). Often the year is
omitted, so there goes one clue.

Or whether the day comes before the month, which I've seen in some
European formats, and is a total reversal of big-endian. The XPN
newsreader date display is a good example, and keeps me from using it. I
can't stand a display like "22/5/2009" and knowing that there are
displays like 5/6/2009 which takes some thought, and may cause errors.
Remember, I'm a stupid American (by birth and residence anyway).

The purpose of the ISO is ... INTERNATIONAL STANDARDS.

We must forget what we were taught in school in our different countries,
and remember that the Internet is a what?: International Network.


>> The question arises: is it May 6, or is it June 5?
>
> Given the above - no, it doesn't.


It is still ambiguous -- without your "given the above" addition.

Furthermore, it may still be incorrect. You are only assuming, just like
I did when I said it "must" be June 5 because that was the actual date
yesterday. But I could easily be wrong assuming that.


>> 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.)


It might be in the ISO format, but is it really a true representation of
the true date? I certainly wouldn't bet money on it!


>> 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.


"Your" experience is noted.

You read MINE, but decided to disagree.

I'll write it off as a misunderstanding.


>> 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.)
>

You incorrectly assume that I already knew the information was in ISO
format.

The purpose of my message was to point out what some people may
incorrectly determine as date, not that I couldn't do so. You obviously
didn't see this.

I know it appears I was asking or giving advice to use the ISO format
for this message or for Subversion, but it was not directed toward the
OP nor this thread. It was for education.

It's just good practice, with which you apparently agree.

Thanks for your input.


-- 
John 

No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID: <h0eldo$437$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!newsfeed.kpn.net!pfeed09.wxs.nl!feeder.motzarella.org!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail
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> <78uej4F1o243oU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <h0eldo$437$1@optima7.xanadu-bbs.net>
Subject: Re: Datetime pedantry
Date: Sat, 06 Jun 2009 16:00:40 -0500
From: "John F. Morse" <xanadu.bbs@example.invalid>
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> <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!newsfeed.kpn.net!pfeed09.wxs.nl!feeder.motzarella.org!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 107
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: optima7.xanadu-bbs.net 1244322040 4199 192.168.89.210 (6 Jun 2009
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Sat, 6 Jun 2009 21:00:40 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.21 (X11/20090318)
In-Reply-To: <78uej4F1o243oU1@mid.individual.net>