| Server IP : 216.92.14.13 / Your IP : 216.73.216.171 Web Server : Apache System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : rmlac2fmr ( 1040637) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/bin/ |
Upload File : |
#!/usr/bin/perl
use Date::Easter;
#
# Calculates easter for a particular year
# Usage:
# easter
# (to calculate easter for this year) or
# easter 1983
# (to calculate for a particular other year)
#
my @months = qw(January February March April May June July August
September October November December);
my $year;
if ($ARGV[0]) {
$year = $ARGV[0];
print "In $year, ";
} else {
$year = (localtime(time))[5] + 1900;
print "This year, ";
}
my ($month, $day) = gregorian_easter( $year );
print "Easter falls on ";
print $months[ $month - 1];
print " $day in the Gregorian reckoning,\nand on ";
($month, $day) = orthodox_easter( $year );
print $months[ $month - 1];
print " $day in the Orthodox reckoning.\n\n";