Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: The darned Feb problem :)

by zakb (Pilgrim)
on Apr 24, 2002 at 16:00 UTC ( #161658=note: print w/replies, xml ) Need Help??


in reply to Re: The darned Feb problem :)
in thread where does the time go?

DaWolf,

Imagine it's the 31st March. You subtract 1 from the month and get 31st February - which isn't a valid date.

A similar problem occurs when it's any day in January. You subtract one from the month and get -1...

Hope this helps!

Replies are listed 'Best First'.
Re: Re: Re: The darned Feb problem :)
by DaWolf (Curate) on Apr 24, 2002 at 16:03 UTC
    Damn! You guys are right.

    I've never realized this. Sooo, time to rewrite some code... :)

    Er Galv„o Abbott
    a.k.a. Lobo, DaWolf
    Webdeveloper
      Not until you refund me my last bank deposit which apparently went through on the 54th of June, 1704... >:)
      (as you might guess, it wasn't much... just my $two_cents)

      blyman
      setenv EXINIT 'set noai ts=2'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-10-07 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (30 votes). Check out past polls.

    Notices?