Can anyone explain the following? (the difference in commands is the
year spec.)
david@g4: perl -e 'use Time::Local;print ( (localtime(timelocal(0, 0,
0, 1, 1, 55)))[6], "\n");'
2
david@g4: perl -e 'use Time::Local;print ( (localtime(timelocal(0, 0,
0, 1, 1, 54)))[6], "\n");'
Cannot handle date (0, 0, 0, 1, 1, 2054) at -e line 1
david@g4:
All years I've tried > 55 are Ok; all years I've tried < 54 fail.
David
perl -v:
This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level
(with 1 registered patch, see perl -V for more detail)
uname -a:
Darwin G4.local 7.5.0 Darwin Kernel Version 7.5.0: Thu Aug 5
19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC Power
Macintosh powerpc
--
David Ledger - Freelance Unix Sysadmin in the UK.
Chair of HPUX SysAdmin SIG of hpUG technical user group (www.hpug.org.uk)
dledger@xxxxxxxxxxx
www.ivdcs.co.uk
|