Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: 2038 bug

by grantm (Parson)
on Apr 11, 2003 at 08:48 UTC ( [id://249833]=note: print w/replies, xml ) Need Help??


in reply to Re: 2038 bug
in thread 2038 bug

But realistically Y2038 is only an issue if time_t is still a 4 byte int in 2038.

I'm not trying to be a panic monger (lord knows the Y2K 'bug' brought enough of them out of the woodwork!) but the problem is real now. There are plenty of reasons you might want to do a date calculation that went beyond 2038, for example printing a table of predicted values by year for a retirement investment policy, or calculating a mortgage amortisation table, or working out what day of the week to schedule your retirement party :-).

Don't get me wrong, I'm not suggesting these things are impossible or even hard to do. I'm merely saying that the standard tools like time(), localtime() and Time::Local() will let you down. Dave Rolsky's recent article on Perl.com provides some answers.

Replies are listed 'Best First'.
Re: 2038 bug
by Abigail-II (Bishop) on Apr 11, 2003 at 09:00 UTC
    There are plenty of reasons you might want to do a date calculation that went beyond 2038, for example printing a table of predicted values by year for a retirement investment policy, or calculating a mortgage amortisation table, or working out what day of the week to schedule your retirement party.
    Sure, but those are dates. One doesn't calculate a mortgage amortisation table with a precision of a second, nor are parties planned to start at a specific second.

    Abigail

      Sure, but those are dates.

      Agreed. But Perl doesn't provide standard tools for dealing with dates, only date/times.

      One doesn't calculate a mortgage amortisation table with a precision of a second, nor are parties planned to start at a specific second.

      You've never met my German ex-fiance, have you?

      --
      tbone1
      Ain't enough 'O's in 'stoopid' to describe that guy.
      - Dave "the King" Wilson

Log In?
Username:
Password:

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

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

    No recent polls found