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

Re: Re: 2038 bug

by grantm (Parson)
on Apr 11, 2003 at 08:48 UTC ( #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.


Comment on Re: Re: 2038 bug
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
Node Status?
node history
Node Type: note [id://249833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-07-25 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls