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
- [MacPerl] Sprintf() huh? robinmcf
- Re: [MacPerl] Sprintf() huh? Detlef Lindenthal
- Re: [MacPerl] Sprintf() huh? John W Baxter
- Re: [MacPerl] Sprintf() huh? David Graff
- Re: [MacPerl] Sprintf() huh? Jim Correia
- Re: [MacPerl] Sprintf() huh? robinmcf
- Re: [MacPerl] Sprintf() huh? Ronald J Kimball
- Re: [MacPerl] Sprintf() huh? Bart Lateur
- Re: [MacPerl] Sprintf() huh? robinmcf
- Re: [MacPerl] Sprintf() huh? John W Baxter