Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Calc last friday of month

by CountZero (Bishop)
on Feb 03, 2009 at 06:24 UTC ( #740906=note: print w/ replies, xml ) Need Help??


in reply to Calc last friday of month

use strict; use Date::Manip; $main::TZ= 'GMT'; print UnixDate(ParseDate("last Friday in February 2009"),"Last Friday +of the month is %B %E, %Y.");

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James


Comment on Re: Calc last friday of month
Download Code
Re^2: Calc last friday of month
by csarid (Sexton) on Feb 03, 2009 at 19:05 UTC
    Wow! the Date::Manip is powerful, this is exactly what I was looking for. Thanks to every for their replies. I will definitely use the methods suggested at some point. Thanks very much!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-09-21 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls