North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: Unix Timestamp

  • From: Chris Adams
  • Date: Mon Oct 22 19:21:08 2001

Once upon a time, Greg A. Woods <[email protected]> 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 <[email protected]>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.