Re: Date and Hour

From: Andreas J. Koenig <andreas.koenig@dont-contact.us>
Date: 27 Apr 1999 17:27:19 +0200

>>>>> On Mon, 26 Apr 1999 09:40:08 +0200, "Jens-S. Voeckler" <voeckler@rvs.uni-hannover.de> said:

> On Fri, 23 Apr 1999, Aaron Baugher wrote:
> ]# perl -e 'use Time::localtime; print ctime(924879043)'
> ]Fri Apr 23 14:50:43 1999

> My favourite:

> alias wt="perl -e 'use POSIX; print ctime(shift);'"

> and:

> wt 924879043

> all you want...

Try

% time perl -le 'print scalar localtime(shift);' 924879043
Fri Apr 23 16:50:43 1999
perl -le print scalar localtime(shift); 924879043 0.02s user 0.00s system 10989% cpu 0.000 total
% time perl -e 'use POSIX; print ctime(shift);' 924879043
Fri Apr 23 16:50:43 1999
perl -e use POSIX; print ctime(shift); 924879043 0.62s user 0.02s system 105% cpu 0.607 total

Take care;-)

-- 
andreas
Received on Tue Apr 27 1999 - 09:25:49 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:58 MST