in reply to Date Manipulation Calculation Question

On a 32-bit machine, the valid range of epoch is: 0 - 2 ** 31 - 1 inclusive, and they translate into:

1970 January 01 00:00:00 2038 January 19 03:14:07

Here is the code:

use POSIX; { my $t = strftime("%Y %B %d %H:%M:%S", gmtime(0)); print $t, "\n"; } { my $t = strftime("%Y %B %d %H:%M:%S", gmtime(2 ** 31 - 1)); print $t, "\n"; }