[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 822-date obsolete?



I don't see the bug.

	LANG=C date -R

do use day and month names from the spec. you show.
The bug might be that one has to tell date to forget about locale.

-------------------------------------------------------------------------------
Karl Hammar		Aspö Data		karl@kalle.csb.ki.se
Lilla Aspö 2340		0173 140 57
S-742 94 Östhammar	070 511 97 84		Professionella Linuxlösningar
Sweden
-------------------------------------------------------------------------------

On Sun, 10 Jan 1999, Craig Sanders wrote:

> On Sat, Jan 09, 1999 at 04:26:39PM +0100, Karl B. Hammar wrote:
> > 
> > ----- MAIN
> > You can't simply substitute 822-date with date -R, since date cares about
> > your LANG variable.
> > 
> > $ date -R
> > lör,  9 jan 1999 16:08:00 +0100
> > $ LANG=C date -R
> > Sat,  9 Jan 1999 16:09:41 +0100
> 
> i just checked rfc-822. that is a bug in /bin/date. rfc-822 defines days
> and months as being:
> 
>      day         =  "Mon"  / "Tue" /  "Wed"  / "Thu"
>                  /  "Fri"  / "Sat" /  "Sun"
> 
>      month       =  "Jan"  /  "Feb" /  "Mar"  /  "Apr"
>                  /  "May"  /  "Jun" /  "Jul"  /  "Aug"
>                  /  "Sep"  /  "Oct" /  "Nov"  /  "Dec"
> 
> 
> see /usr/doc/doc-rfc/all-rfcs/rfc822.txt.gz, section 5: "DATE AND TIME
> SPECIFICATION"
> 
> craig
> 
> --
> craig sanders
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


Reply to: