Date: Mon, 8 Jan 2001 23:40:03 -0800 (PST) From: Peter Pentchev <roam@orbitel.bg> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/24166: Allow Date to generate an RFC-822 Compliant output. Message-ID: <200101090740.f097e3q45963@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/24166; it has been noted by GNATS. From: Peter Pentchev <roam@orbitel.bg> To: taz@lagmonster.org Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/24166: Allow Date to generate an RFC-822 Compliant output. Date: Tue, 9 Jan 2001 09:35:49 +0200 On Mon, Jan 08, 2001 at 04:28:27PM -0800, taz@lagmonster.org wrote: > > >Number: 24166 > >Category: misc > >Synopsis: Allow Date to generate an RFC-822 Compliant output. > >Originator: David Alexander > >Release: 4.2 > >Organization: > Lagmonster Org. > >Environment: > No problems. > >Description: > It would be nice to have Date generate (perhaps with a -R switch) an RFC-822 > formatted output. It would be nice to be able to offset it. (I am looking for > a non-converted format to push cookies and other HTTP standard date format > uses. If you mean date(1) (/bin/date), it can generate output in any format you specify. See the date(1) and strftime(3) manpages (strftime.3 is referenced in the SEE ALSO section of date.1). For RFC-822 compliant output, use: date '+%a, %e %b %Y %T %z (%Z)' You could even make a tiny shell script to do that, if you don't want all those format chars in the way: #!/bin/sh exec /bin/date '+%a, %e %b %Y %T %z (%Z)' Does that suffice? :) G'luck, Peter -- What would this sentence be like if pi were 3? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101090740.f097e3q45963>