Ethiopic
NAME
Date::Calendar::Ethiopic - conversions from / to the Ethiopic calendar
SYNOPSIS
Converting a Gregorian date to Ethiopic
use Date::Calendar::Ethiopic;
my Date $Perlcon-Riga-grg;
my Date::Calendar::Ethiopic $Perlcon-Riga-eth;
$Perlcon-Riga-grg .= new(2019, 8, 7);
$Perlcon-Riga-eth .= new-from-date($Perlcon-Riga-grg);
say $Perlcon-Riga-eth.strftime("%A %e %B %Y");
#--> Rob 1 Nähase 2011
Converting an Ethiopic date to Gregorian
use Date::Calendar::Ethiopic;
my Date::Calendar::Ethiopic $TPC-Pittsburgh-eth;
my Date $TPC-Pittsburgh-grg;
$TPC-Pittsburgh-eth .= new(year => 2011, month => 10, day => 14);
$TPC-Pittsburgh-grg = $TPC-Pittsburgh-eth.to-date;
say $TPC-Pittsburgh-eth.strftime("%e %B %Y = "), $TPC-Pittsburgh-grg.gist
#--> 14 Säne 2011 = 2019-06-21
Converting a date while caring about sunset:
use Date::Calendar::Strftime;
use Date::Calendar::Ethiopic;
my Date::Calendar::Ethiopic $dt-ethiopic;
my Date $dt-greg;
$dt-ethiopic .= new(year => 2017, month => 3, day => 5, daypart => after-sunset);
$dt-greg = $dt-ethiopic.to-date;
say $dt-greg.gist; # --> 2024-11-13
# on the other hand
$dt-ethiopic .= new(year => 2017, month => 3, day => 5, daypart => before-sunrise);
$dt-greg = $dt-ethiopic.to-date;
say $dt-greg.gist; # --> 2024-11-14
$dt-ethiopic .= new(year => 2017, month => 3, day => 5, daypart => daylight);
$dt-greg = $dt-ethiopic.to-date;
say $dt-greg.gist; # --> 2024-11-14
DESCRIPTION
Date::Calendar::Ethiopic is a class implementing the Ethiopic calendar. This calendar derives from the ancient Egyptian calendar. A year consists of 12 months with 30 days each, plus 5 or 6 additional days (epagomene) at the end of the year. Leap years occurs every fourth year, with no adjustment for century years. The calendar also defines weeks which last for 7 days, beginning on sunday and ending on saturday.
See the full documentation in the Date::Calendar::CopticEthiopic role.
AUTHOR
Jean Forget <J2N-FORGET at orange dot fr>
COPYRIGHT AND LICENSE
Copyright (c) 2019, 2020, 2024, 2025 Jean Forget
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.