🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50808

Re: Format for date in Article

#50808
From: Russ Allbery
Date: Sat, 24 Feb 2001 06:33
29 lines
2174 bytes
Anand Gupta <prence@aclindia.net> writes:

> How do Newsreaders extract/parse the date from the headers and show it
> in a consistent format ?

They parse the Date header.  Many of them use code derived from
getdate.y/parsedate.y, which has been around for many years and which you
can find in INN as well as many other software products.  Others have
rolled their own parser.

> Is there someplace I can get a format of top 10 (?) formats normalls
> used for dates ?

These days, there's pretty much only one format that you have to worry
about, and that's the one described in:

  <http://www.ietf.org/internet-drafts/draft-ietf-drums-msg-fmt-09.txt>

in section 3.3.  See also the obs-* syntax elements for styles that used
to be used but shouldn't be generated any more; the primary variations
that you'll encounter are two digit years or one of the US time zones
given instead of a numeric offset.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <ylk86glhd5.fsf@windlord.stanford.edu>
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!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <3a967c7e.37419301@news.alt.net> <230220011429399133%planb@newsreaders.com> <ylwvahunk8.fsf@windlord.stanford.edu> <3a97507d.4531262@news.alt.net>

Show Full Headers
Complete Article Headers
Message-ID: <ylk86glhd5.fsf@windlord.stanford.edu>
Subject: Re: Format for date in Article
Date: Sat, 24 Feb 2001 06:33:58 +0000
From: Russ Allbery <rra@stanford.edu>
References: <3a967c7e.37419301@news.alt.net> <230220011429399133%planb@newsreaders.com> <ylwvahunk8.fsf@windlord.stanford.edu> <3a97507d.4531262@news.alt.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.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 28
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 982996438 26790 171.64.13.23 (24 Feb 2001 06:33:58 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)