Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: big bug in Date::Calc?

by tangent (Curate)
on Feb 19, 2013 at 11:30 UTC ( #1019524=note: print w/ replies, xml ) Need Help??


in reply to big bug in Date::Calc?

I think the problem is that you are calling Monday_of_Week() twice:

($y, $m, $d) = Add_Delta_Days( Monday_of_Week( $week, $year ), 6); # Change line above to: ($y, $m, $d) = Add_Delta_Days( $year, $month, $day, 6); First week of 2013: 31/12/2012 to 6/1/2013 Second week of 2013: 7/1/2013 to 13/1/2013


Comment on Re: big bug in Date::Calc?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2015-07-06 03:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls