Article View: news.software.nntp
Article #65038Re: Correct DATE format for News posting
From: Andrew Gierth
Date: Sun, 27 Apr 2003 06:42
Date: Sun, 27 Apr 2003 06:42
52 lines
3014 bytes
3014 bytes
>>>>> "fink" == fink <fink@hmail.com> writes: fink> Here are some of the post dates as taken from newsgroups: fink> Thu, 10 Apr 2003 19:42:33 -0400 fink> Mon, 07 Apr 2003 22:40:04 GMT fink> Sat, 19 Apr 2003 12:56:54 +0200 (CEST) fink> Fri, 18 Apr 2003 05:16:36 -0400 (EDT) fink> Thu, 3 Apr 2003 18:51:15 -0500 (EST) fink> Now the RFC says, dates should contain either the offset or the fink> 3 char timezone but not both. Yet I see there is no fink> consistency in the dates posted. Anything in (parentheses) is a comment and is not semantically part of the header contents. So, none of the above actually contain both the offset and the zone name. fink> Does this imply that whichever client posted these are not in fink> compliance with the RFC or did I interpret the RFC wrong? What fink> is the right format for posting and interpreting dates? If you are generating dates, then this is the correct format: Date: Day, DD Mon YYYY HH:MM:SS +zzzz The initial "Day," is entirely optional, but if it is present it _must_ be the three-letter English abbreviation for the correct weekday name. Don't localise this unintentionally. "DD" may be one or two digits, leading zeros should be avoided "Mon" must be the three-letter English abbreviation for the month name (again, localisation is strictly forbidden). "YYYY" should always be four-digits HH, MM and SS should always be two digits with leading zeros. Always generate the zone (+/- nnnn) in numeric form. The value "-0000" is special, it means "this date/time is given in UTC, but says nothing about what the poster's local timezone really is". Otherwise, give the numeric offset of the local timezone from UTC (if this offset is 0, then give it as +0000). Optionally, you can add to the end of the above format a comment, enclosed in parentheses, giving the name of the timezone. (You can in theory put anything else you like there, but you shouldn't.) -- Andrew.
Technical Details
Message-ID:
<87of2szbjz.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news-feed.riddles.org.uk!news-spur.riddles.org.uk!newsmonsterReferences:
<UUzqa.1390$ZH2.129180841@newssvr21.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <87of2szbjz.fsf@erlenstar.demon.co.uk> Subject: Re: Correct DATE format for News posting Date: Sun, 27 Apr 2003 06:42:08 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <UUzqa.1390$ZH2.129180841@newssvr21.news.prodigy.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news-feed.riddles.org.uk!news-spur.riddles.org.uk!newsmonster Newsgroups: news.software.nntp Organization: disorganised Lines: 51 X-Mayan-Date: Long count = 12.19.10.3.12; tzolkin = 12 Eb; haab = 0 Uo X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-Attribution: AG X-P-Persistent-Headers: are a bad idea. X-Newsreader: Gnus v5.5/Emacs 20.2 X-Complaints-To: abuse@news-spur.riddles.org.uk X-Post-Filter: postfilter v0.6 alpha