On Mon, Mar 05, 2001 at 06:33:15AM +0900, [EMAIL PROTECTED] wrote:
> #!perl-w
> 
> printf("%2d",((localtime(time))[5]-100)),"\n";

Apparently some programmers have a very short memory.  Unless you want your
script to fail for years before 2000 and after 2999, that should be:

(localtime)[5] % 100;


Do not subtract 100 from the year returned by localtime!

Ronald

Reply via email to