Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Calc last friday of month

by ikegami (Pope)
on Feb 03, 2009 at 04:50 UTC ( #740899=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $days_to_first_monday = ($dow + 7 - 1) % 7;
    
  2. or download this
    $days_to_last_friday = ($dow + 7 - 5) % 7 - 7;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2015-03-03 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (84 votes), past polls