[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Y2K complience



This is a Perl problem, not specifically a MacPerl problem, and it isn't a
problem anyway.  localtime returns (year - 1900).   So 2000 will return
(does return; try it, you can give localtime an argument) 100, not 00.  The
only MacPerl specific thing that occurs in the time routines is that the
Mac zero of time is 1904, so when you use Time::Local and you mean 2006,
you have to give a year of 106.  (On a Unix box, there are unique 2 digit
years for its entire span of years, since the range there is 1970 - 2038,
and you can use them in Time::Local).

(Hmm, let's see if this funky new PGP 5.0 stuff works from Eudora.)

}
}Tony
}
}_______________________________________________________
}mailto:tony@ningaui.anu.edu.au          |+61 6 249 5688
}http://www.anu.edu.au/People/TonyB.html |+61 6 288 0959
}
}Ningaui Pty Ltd, GPO Box 1680, Canberra City,  ACT 2601
}
}Visiting Fellow, Department of Computer Science,   FEIT
}Australian National University,    ACT 0200   AUSTRALIA
}

---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us



Content-Type: application/pgp-signature

Attachment converted: catnip:Untitled (????/----) (00003101)