Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: big bug in Date::Calc?

by ww (Bishop)
on Feb 19, 2013 at 11:36 UTC ( #1019526=note: print w/ replies, xml ) Need Help??


in reply to big bug in Date::Calc?

Looks to me like the bug is in your logic. You're working with the LAST day of 2012 (2012 Dec 31, Mon) but expecting that to be treated as the first day of the first week of 2013.

Yes, it's part of a week that's MOSTLY in 2013, but Date::Calc isn't on board for that very human interpretation. Like most programs, it's quite literal minded. Day 1 of 2013 is 2013 Jan 1, Tues, and 2013 Jan 8 is one week later.


If you didn't program your executable by toggling in binary, it wasn't really programming!


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-07 19:41 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 (93 votes), past polls