home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!nic.unh.edu!anchor.unh.edu!pas
- From: pas@anchor.unh.edu (Paul A Sand)
- Subject: bug in ctime.pl?
- Message-ID: <1992Jul21.201121.15732@nic.unh.edu>
- Sender: news@nic.unh.edu (USENET News System)
- Organization: University of New Hampshire
- Date: Tue, 21 Jul 1992 20:11:21 GMT
- Lines: 16
-
- Based on some peculiar behavior, I looked at the ctime.pl library
- file. It contains the line:
-
- $year += ($year < 70) ? 2000 : 1900;
-
- where $year is one of the elements returned from gmtime() or
- localtime(). Looking at the definitions of what *those* return,
- it seems the statement should be simply:
-
- $year += 1900;
-
- Or am I missing something subtle?
- --
- -- Paul A. Sand | I learned to put the [toilet] seat down...it
- -- Univ. of New Hampshire | makes you look like a warm, caring, sensitive
- -- pas@kepler.unh.edu | human being. (Prof. R. Noble, from r.h.f.)
-