🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50737

Re: ARPANET date?

#50737
From: 101 Meowbots
Date: Tue, 20 Feb 2001 03:30
35 lines
2732 bytes
Jan Krumsiek <Jan.Krumsiek.Nospam@gmx.de> wrote:

> i'm writing a function that converts the "Date" line in a usenet-article 
> header into "real" dates (vb-dates or something like this).

You are wandering into murky waters here.  If you want to
sort/search/compare dates, you are going to have to parse the things,
and that's that.  If, however, you only want to display dates, you can
save yourself much aggravation by simply displaying the unmodified
header contents.

> the rfc says that the date-header line contains a ARPANET date?! what is 
> this? is there a definition for this somewhere??

ARPANET was the original project for which the Internet protocols were
devised.

> are all time-zones allowed in this date and does anybody know where to 
> find definitions for all time-zones??

You want two documents, RFC 822 (the mail message format on which news
articles are based) and RFC 1123, containing important corrections to
RFC 822.  The most important correction is in the year field.  It was
originally specified as two digits but changed to four.

You will need to expect both forms of the year, and should expect to
see some lingering Y2K problems.  The current year may appear as 2001,
101, 01, 19101, and possibly other interesting variations, so your
parser will need to be flexible.

If you can find an existing mail/date library to use, try it before
writing your own.  This problem has a habit of spawning years-long
debugging cycles, so advantage of k0dez that have already been through
that ordeal.
Technical Details
Message-ID: <87zofim3sx.fsf@litterbox.meowing.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-03!supernews.com!freenix!isdnet!howland.erols.net!portc.blue.aol.com.MISMATCH!portc01.blue.aol.com!newsjunkie.ans.net!newsfeed.us.ibm.net!ibm.net!news1.prserv.net!32.102.114.238
References: <MPG.14fbb12027bcd6c5989691@news.btx.dtag.de>

Show Full Headers
Complete Article Headers
Message-ID: <87zofim3sx.fsf@litterbox.meowing.net>
Subject: Re: ARPANET date?
Date: Tue, 20 Feb 2001 03:30:49 +0000
From: 101 Meowbots <meowbot@meowing.net>
References: <MPG.14fbb12027bcd6c5989691@news.btx.dtag.de>
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-03!supernews.com!freenix!isdnet!howland.erols.net!portc.blue.aol.com.MISMATCH!portc01.blue.aol.com!newsjunkie.ans.net!newsfeed.us.ibm.net!ibm.net!news1.prserv.net!32.102.114.238
Newsgroups: news.software.nntp
Mail-Copies-To: nobody
X-Meow: Wouf
X-Face: #!n`o'kqzEiF(\CL4IR$H.F-||!S*5wv~g8~prn}Z<+F/-^?oJ:#_V#QP?G}!!yayV0]i\'
 GTb6:]Tic*!vjH}wm>ILhZBn8U0XEjh'l~yrjB?4Iiph5N9:kwqd/}86UTr9i|LCu]Bd)~G1R9U(qJ
 KOyEQK8*?
Organization: They
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 32.102.114.238
X-Trace: 20 Feb 2001 03:39:30 GMT, 32.102.114.238
X-Complaints-To: abuse@prserv.net