RE: Perl year

by "Brian A. Sayrs" <sayrs(at)southwindsolutions.com>

 Date:  Mon, 26 Jun 2000 07:08:42 -0700
 To:  "'FODAC(at)aol.com'" <FODAC(at)aol.com>,
"hwg-techniques(at)mail.hwg.org" <hwg-techniques(at)mail.hwg.org>
  todo: View Thread, Original
Add 1900 to the year-the year field is defined as the number of years =
since 1900.  Go to your command prompt and type:

perldoc -f localtime

Try to ignore its Y2K joke.  :)

Brian A. Sayrs
Owner, Southwind Solutions


-----Original Message-----
From:	FODAC(at)aol.com [SMTP:FODAC(at)aol.com]
Sent:	Monday, June 26, 2000 2:38 AM
To:	hwg-techniques(at)mail.hwg.org
Subject:	Perl year

I figured out my guestbook erasing problem. I do have one more Perl =
question.

I'm using the localtime function for a date when entries are submitted =
and I'm getting 20100 instead of 2000 for the year. I reduced the field =
size by one and got 205.  This is on a UNIX server. Could someone give =
me a brief explanation of how this function works?

Thanks,
Kevin Riggs

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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.