Date-SundayLetter
view release on metacpan or search on metacpan
lib/Date/SundayLetter.pm view on Meta::CPAN
$letter = $letters[$d];
}
return $letter;
} #}}}
# sub parameter {{{
sub parameter {
# The "parameter" is a magic number that tracks how far the Gregorian
# calendar is from the Julian calendar. It has roughly to do with the
# fact that the Gregorian calendar observes leap year on the 4-century
# mark, and the Julian calendar does not.
my $year = shift;
my $S = int ($year / 100 );
my $P = ( int( $S/4 ) - $S ) % 7;
return $P;
} # }}}
1;
( run in 0.435 second using v1.01-cache-2.11-cpan-5dc5da66d9d )