in reply to Re: Elapsed date and time
in thread Elapsed date and time

It needs to be patched to use BigInt so that it can deal with time lengths over I think 300 days or so

Not sure where you got that from: a 31-bit integer will hold enough seconds for about 68 years, which is why most Unix-oriented code (with the epoch starting at Jan 1, 1970) can only handle dates up to Jan 19, 2038.

Hugo

Replies are listed 'Best First'.
Re: Re: Re: Elapsed date and time
by l2kashe (Deacon) on Mar 04, 2003 at 14:02 UTC
    You know what.. you're right... When I was doing testing though, the same algorithm that worked for smaller values got truncated when I tried to compute lengths greater than 1 year. Since it was so early, I just thought I was running out of space in the 'int', and this morning I was thinking about using an array to store the value, but you're right I shouldn't need to.. I'll have to dig in and see if I can figure out whats going on.

    /* And the Creator, against his better judgement, wrote man.c */