And add 1 to the month value.
The months are returned 0 to 11 (Jan to Dec).
Jeff Colwell
Senior Software Engineer
No electrons were harmed in making this e-mail message.
-----Original Message-----
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 9:12 AM
To: Mark Folse
Cc: Craig S Monroe; [EMAIL PROTECTED]
Subject: Re: Problem printing a system value to a filehandle (windows)
On Thu, 14 Jun 2001, Mark Folse wrote:
> I started out doing the same thing on my NT box many moons ago, and
> found this more reliable and easier to manage:
>
> ($day,$month,$date,$time,$year)=split (/ /,localtime);
localtime can also be used directly in a list context, for more
flexibility:
my ($day, $month, $year) = (localtime)[3,4,5];
You just have to remember to add 1900 to the year value!
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
He knows not how to know who knows not also how to unknow.
-- Sir Richard Burton