RE: Form Mail replacement

by "Wiswell, Virginia" <Virginia.Wiswell(at)dowjones.com>

 Date:  Thu, 30 Dec 1999 16:40:00 -0500
 To:  "'ml(at)digitaldaze.com'" <ml(at)digitaldaze.com>,
"'hwg servers'" <hwg-servers(at)hwg.org>
  todo: View Thread, Original
thanks, bill! suits me fine!

> On Thu, 30 Dec 1999, Wiswell, Virginia wrote:
> > > why not make it last a millenium:
> > > > 
> > > >            #Y2K Fix
> > >              $tl[5] = $tl[5]-2000;
> 
> Not quite right.  $tl[5] contains the number of years since 1900, so:
> 
> In 1999 it would be 99.  99 - 2000 = -1901
> In 2000 it would be 100.  100 - 2000 = -1900
> 
> The following single line will give a correct two digit year 
> between 1900
> and 9999:
> 
>       $tl[5] = substr($tl[5]+1900,2,2);
> 
> Regards,
> Bill
 

HWG: hwg-servers 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.