Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: dates and holidays

by Krambambuli (Deacon)
on Feb 18, 2010 at 15:46 UTC ( #823962=note: print w/ replies, xml ) Need Help??


in reply to dates and holidays

Maybe you could give Date::Manip a try.

The following code

#!/usr/bin/perl use strict; use warnings; use Date::Manip; Date_Init("ConfigFile=/tmp/Manip.cnf"); my $name1 = Date_IsHoliday( '2010-02-15'); print "$name1\n";
would print

Washington's Birthday

"out of the box", and the holidays to remember are easily configurable for your own needs.
Just take care to copy Manip.cnf from the test suite within the installation bundle to a convenient place.

Krambambuli
---


Comment on Re: dates and holidays
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2014-12-17 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (32 votes), past polls