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.

Reply via email to