Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: A date calculation

by chrism01 (Friar)
on Dec 19, 2007 at 01:15 UTC ( [id://657772]=note: print w/replies, xml ) Need Help??


in reply to A date calculation

As per funkymonk's orig post, it's trying to calc the first of the (next) mth, by adding enough days to get to the end of the curr mth (calc in seconds). It's actually an off-by-one error (in this case off by 1 day).
As mentioned, you should use a Date:: module to avoid fiddly details like different mth lengths and leap yrs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-26 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found