[43681] in North American Network Operators' Group
Re: Unix Timestamp
daemon@ATHENA.MIT.EDU (Chris Adams)
Mon Oct 22 19:19:06 2001
Date: Mon, 22 Oct 2001 18:18:41 -0500
From: Chris Adams <cmadams@hiwaay.net>
To: nanog@merit.edu
Message-ID: <20011022181841.D31965@HiWAAY.net>
Mail-Followup-To: Chris Adams <cmadams@hiwaay.net>, nanog@merit.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20011022210811.6E88FE8@proven.weird.com>; from woods@weird.com on Mon, Oct 22, 2001 at 05:08:11PM -0400
Errors-To: owner-nanog-outgoing@merit.edu
Once upon a time, Greg A. Woods <woods@weird.com> said:
> PERL!?!?!? What the heck's the matter with "date"!?!?!?!? 0.0 :-)
>
> $ date -r 1003723200
> Mon Oct 22 00:00:00 EDT 2001
On Solaris 7:
$ date -r 1003723200
date: illegal option -- r
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
On Digital Unix 4.0F:
$ date -r 1003723200
date: illegal option -- r
Usage: date [-u] [+field descriptors]
On Red Hat Linux 7.1:
$ date -r 1003723200
date: 1003723200: No such file or directory
But perl works on all three. :-)
--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.