Re: current date in CGI script

by "Jason K. Chapman" <theguild(at)interserv.com>

 Date:  Fri, 01 Jun 2001 09:42:58 -0400
 To:  hwg techniques <hwg-techniques(at)hwg.org>
 References:  arthurian
  todo: View Thread, Original
At 08:05 AM 6/1/2001 -0500, Shawn Sass wrote:
>Perl, version 5.005_02 built for sun4-solaris
>
     ($sec,$min,$hour,$mday,$mon,$year,$wday) = 
(localtime(time))[0,1,2,3,4,5,6];

That should give you what you need.

The rest of the details can be found at:
<http://www.perl.com/CPAN-local/doc/manual/html/pod/perlfunc.html>

Jason K. Chapman
--
THE HERETIC, a cyber thriller by Jason K. Chapman.
Online edition at <http://www.happyhacker.org/heretic/>. Softcover,
ISBN 1-929925-38-7. Latest news at <http://www.jasonkchapman.com>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA