On Mon, 5 Mar 2001 10:33:06 -0500, Ronald J Kimball wrote:
>> 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;
s/2999/2099/;
--
Bart.
- [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
