nanog mailing list archives

Re: Unix Timestamp


From: Chris Adams <cmadams () hiwaay net>
Date: Mon, 22 Oct 2001 18:18:41 -0500


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.


Current thread: