> >So if you want to translate 31 August 2006 you have to subtract one from the >month and 1900 from the year: > >$ perl -Mstrict -MTime::Local -le 'print timelocal(0,0,0,31,7,106)' >1157007600
John, For the instance described by you,both '2006' and '106' are right. $ perl -Mstrict -MTime::Local -le 'print timelocal(0,0,0,31,7,106)' 1156953600 $ perl -Mstrict -MTime::Local -le 'print timelocal(0,0,0,31,7,2006)' 1156953600 -- Jeff Pang NetEase AntiSpam Team http://corp.netease.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>