Date::Convert is a Perl module to convert between any two calendar file formats (e.g. ical).
SYNOPSIS
use Date::DateCalc;
$date=new Date::Convert::Gregorian(1997, 11, 27);
@date=$date->date;
convert Date::Convert::Hebrew $date;
print $date->date_string, "n";
Currently defined subclasses:
Date::Convert::Absolute
Date::Convert::Gregorian
Date::Convert::Hebrew
Date::Convert::Julian
Date::Convert is intended to allow you to convert back and forth between any arbitrary date formats (ie. pick any from: Gregorian, Julian, Hebrew, Absolute, and any others that get added on). It does this by having a separate subclass for each format, and requiring each class to provide standardized methods for converting to and from the date format of the base class. In this way, instead of having to code a conversion routine for going between and two arbitrary formats foo and bar, the function only needs to convert foo to the base class and the base class to bar. Ie:
Gregorian Base class Hebrew
The base class includes a Convert method to do this transparently.
Nothing is exported because it wouldn't make any sense to export.
Product's homepage
Requirements:
· Perl