Online nowBunty
Bunty is a person from Stirling, Scotland, UK.
Likes 56,360 pages, 2,978 videos, 6,285 photos2,586 fans • Received 551 reviews
Member since Apr 05, 2003
Lux et umbra vicissim, sed semper amor -- (on: altphotos, facebook - last.fm)

Favorites » Their Blog

Tom Braun / DateTime-Fiction-JRRTolkien-Shire-0.02 - search.cpan.org
Liked it Feb 8, 7:31am 1 review http://search.cpan.org/~tbraun/DateTi...
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;