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.
In reply to Re: Determining if I have a particular Friday off
by Not_a_Number
in thread Determining if I have a particular Friday off
by thmsdrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |