On Fri, Feb 18, 2000 at 04:01:56PM +1100, Andrew Langton wrote:

> I want to write a little perl script to pull some customised info out of my
> squid logs, but I don't know how to convert the unix raw date to a
> human-readable format.  Can anyone help me out?

Like this:

[johnc@swamprat ~]$ perl -e 'print scalar((localtime(950849971)),"\n"'
Fri Feb 18 15:59:31 2000

Cheers,

John
-- 
whois [EMAIL PROTECTED]
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to