Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: 2038 bug

by tachyon (Chancellor)
on Apr 11, 2003 at 05:19 UTC ( #249809=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # get the difference between two epoch times and cope with 2038
    sub diff_time {
    ...
        require Math::BigInt;
        # blah
    }
    
  2. or download this
    my $zero_hour = 2**31 -1;
    print "Zero hour is $zero_hour\n";
    print scalar gmtime($zero_hour), "\n";
    print gmtime($zero_hour+1) ? "OK" . scalar gmtime($zero_hour+1) : 'Oh 
    +dear!';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://249809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2015-07-03 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (55 votes), past polls