Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2016-12-03 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.