Stumble!
Sign in for recommendations. New member? Start here

Joined on Apr 5, 2003 Bunty I like them

Last login: 1 hour agoBunty is a person from Stirling, Scotland, UK.
Lux et umbra vicissim, sed semper amor -- (my photo-blog, deviantart, facebook, last.fm) - av by
Tom Braun / DateTime-Fiction-JRRTolkien-Shire-0.02 - search.cpan.org
Feb 8, 2008 7:31am    (1 review)  programming  http://search.cpan.org/~tbraun/DateTime-...
This is an essential bit of kit if you want your perl applications to run properly in Middle Earth.


Example usage:
    use DateTime::Fiction::JRRTolkien::Shire;

    # Constructors
    my $shire = DateTime::Fiction::JRRTolkien::Shire->new(year => 1419,
    month => 'Rethe',
    day => 25);

    # Accessors
    $year = $shire->year;
    $month = $shire->month; # 1 - 12, or 0 on a holiday
    $month_name = $shire->month_name;
    $day = $shire->day; # 1 - 30, or 0 on a holiday

    $dow = $shire->day_of_week; # 1 - 7, or 0 on certain holidays
    $day_name = $shire->day_name;

    $holiday = $shire->holiday;
    $holiday_name = $shire->holiday_name;

    $leap = $shire->is_leap_year;