in reply to Re: 2038 bug
in thread 2038 bug
then run this perl program:date 01-01-2039
you will get a negative number back. That's the limitation sort of thing, not a bug in his code. Try this code:print time();
Look at how close those two numbers are, now you realize that's the up limitation of positive integers on 32 bit machine.print time(); # set time to 01-01-2038 before try this code print(2 ** 31 - 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: 2038 bug
by Anonymous Monk on Apr 11, 2003 at 05:24 UTC | |
by Courage (Parson) on Apr 11, 2003 at 05:29 UTC |