I'm using Date::Calendar:
rofile to calcualate holidays; but I don't understand how to use the functions to calc memorial day or anyother holiday for that matter.
Here's a sample of my code :
use Strict;
use Win32:
rocess;
use Date::Calc qw(Delta_Days Today Nth_Weekday_of_Month_Year Day_of_Week
Day_of_Week_to_Text Date_to_Text_Long Month_to_Text Date_to_Days);
use Env;
use Date::Calendar:
rofiles qw($Profiles);
use Date::Calendar;
$calendar_US_CA = Date::Calendar->new($Profiles->{'US-CA'});
($year,$month,$day) = Today();
@names = $calendar->labels();
@holidays = $calendar->labels();
$holidays = $calendar->labels();
my ($sec,$min,$hour,$mday,$mon,$year,
$wday,$yday,$isdst) = localtime time;
$week = int(($day + Day_of_Week($year,$month,1) - 2) / 7) + 1;
$dow = Day_of_Week($year,$month,$day);
$DayOfWeek = Day_of_Week_to_Text($dow);
Here's a sample of my code :
use Strict;
use Win32:
use Date::Calc qw(Delta_Days Today Nth_Weekday_of_Month_Year Day_of_Week
Day_of_Week_to_Text Date_to_Text_Long Month_to_Text Date_to_Days);
use Env;
use Date::Calendar:
use Date::Calendar;
$calendar_US_CA = Date::Calendar->new($Profiles->{'US-CA'});
($year,$month,$day) = Today();
@names = $calendar->labels();
@holidays = $calendar->labels();
$holidays = $calendar->labels();
my ($sec,$min,$hour,$mday,$mon,$year,
$wday,$yday,$isdst) = localtime time;
$week = int(($day + Day_of_Week($year,$month,1) - 2) / 7) + 1;
$dow = Day_of_Week($year,$month,$day);
$DayOfWeek = Day_of_Week_to_Text($dow);