Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: 2038 bug

by tachyon (Chancellor)
on Apr 11, 2003 at 05:19 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://249809]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-19 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found