PlotCalendar::DateTools - This is an all perl replacement for parts of Date::Calc. I'd love to use it, but I ran into trouble installing the compiled C onto my hosting service account, since I can't do a compile over there (it'd cost $$) So I have reproduced those functions I needed in perl. Oh well.
require PlotCalendar::DateTools; my ($day, $month, $year) = (5,3,1999); my $dayname = 'Tuesday'; # ---- initialize tool my $dow = Day_of_Year($yr,$mon,$day); my $numdays = Days_in_Month($yr,$mon); my $dow = Decode_Day_of_Week($dayname); my $dowfirst = Day_of_Week($yr,$mon,$day); my ($nyr, $nmon, $nday) = Add_Delta_Days($yr,$mon,$day, $numdays); my $dayname = Day_of_Week_to_Text($dow) my $month = Month_to_Text($mon); my $doy = Day_of_Year($year,$mon,$day);
A perl-only clone of a subset of Date::Calc
Alan Jackson April 1999 ajackson@icct.net
Requires modules : Exporter Carp Time::DaysInMonth Time::JulianDay
PlotCalendar::Month PlotCalendar::Day
To install PlotCalendar::Day, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PlotCalendar::Day
CPAN shell
perl -MCPAN -e shell install PlotCalendar::Day
For more information on module installation, please visit the detailed CPAN module installation guide.