You realise you can do this on the command line :

Shell> perl -e 'print scalar localtime(1086332760) . "\n"'

Or to print the current time :

Shell> perl -e 'print scalar localtime(time) . "\n"'


                - R�khar�ur Egilsson


-----Original Message-----
From: Theo Van Dinter [mailto:[EMAIL PROTECTED] 
Sent: 04 June, 2004 4:50 AM
To: [EMAIL PROTECTED]
Subject: Re: atime conversion


On Thu, Jun 03, 2004 at 09:24:35PM -0500, Chris wrote:
> Is there a formula to convert atime to an understandable figure, or is 
> that
> possible?  Couldn't find anything ref this in the archives.

I like to use the following script:

#!/usr/bin/perl
foreach(@ARGV) {
  /(\d+)/ || next;
  print scalar localtime($1),"\n";
}


:)

-- 
Randomly Generated Tagline:
"If an economist can't give you his phone number, he'll give you an
estimate." - Jack Valenti

Reply via email to