in reply to Determining if I have a particular Friday off
There is a bug in your code.
You assume that every year has 52 weeks. In fact, some are deemed to have have 53:
Try this:
D:\perl>junk.pl 2010 1 1 You DID have Fri 1-Jan-2010 off. D:\perl>junk.pl 2010 1 8 You DID have Fri 8-Jan-2010 off.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Determining if I have a particular Friday off
by thmsdrew (Scribe) on Nov 06, 2012 at 14:55 UTC | |
by hbm (Hermit) on Nov 06, 2012 at 16:55 UTC | |
by thmsdrew (Scribe) on Nov 06, 2012 at 17:43 UTC |
In Section
Cool Uses for Perl