bahere_hasab library

Abushakir (Ge'ez: Bahire Hasab) is an arabic word that can be defined as a time-tracking method, devised by the 12th pope of Alexandria, Pope St. Dimitri. St.

This library can be imported as

import 'package:bahere_hasab/abushakir.dart';

Ethiopian Date and Time

Use EtDatetime to represent moment in time. You can also User Duration dart built it package to represent time span.

You can create EtDatetime object using one of the constructors or just by parsing string with the correct format and also from UNIX timestamp.

EtDatetime now = new EtDatetime.now();
EtDatetime covid19Confirmed = new EtDatetime(year: 2012, month: 7, day: 4);

EtDatetime emergencyLockdown = EtDatetime.parse("2012-07-26 23:00:00");

EtDatetime abushakirPublished = new EtDatetime.fromMillisecondsSinceEpoch(1586257594357)

Ethiopian Calendar

Ethiopic year 1 E.E.3 starts on August 29, 8 C.E. (Julian), our R.D. 2796. According to the definition of the "Ethiopic" calendar in Dershowitz and Reingold's Calendrical Calculations www.amazon.com/Calendrical-Calculations-Nachum-Dershowitz/dp/0521702380, where it's the base calendar for all computations. See the book for algorithms for converting between Ethiopic ordinals and many other calendar systems.

This calendar considers Monday as the beginning of the week. It does not do any formatting, the base class, but any one who is working with this library can use the output as the way they want to use.

You can create Ethiopian Calendar, ETC, object using one of the constructors

ETC ethiopianCalendar = new ETC(year: 2012, month: 7, day: 4);
ETC today = ETC.today()

Bahire Hasab

The words Bahire Hasab originate from the ancient language of Ge'ez, ( Arabic: Abu Shakir) is a time-tracking method, devised by the 12th pope of Alexandria, Pope St. Dimitri. This is the Ge'ez equivalent of Abushakir.

Bahire Hasab also helps man keep track of time, reminding him of the Fasting seasons, prayer hours and Holidays.

You can create BahireHasab object using constructor

BahireHasab someRandomYear = BahireHasab(year: 2011);

// Year parameter is optional. If year is not provided, it will assume the
current year.

BahireHasab thisYear = BahireHasab();

Classes

BahireHasab
"Bahire Hasab /'bəhrɛ həsəb'/ " simply means "An age with a descriptive and chronological number". In some books it can also be found as "Hasabe Bahir", in a sense giving time an analogy, resembling a sea.
Calendar
Interface for Ethiopian Calendar types.
EDT
Interface for Ethiopian Data and Time types.
ETC
The Ethiopian calendar is one of the the calendars which uses the solar system to reckon years, months and days, even time. Ethiopian single year consists of 365.25 days which will be 366 days with in 4 years period which causes the leap year. Ethiopian calendar has 13 months from which 12 months are full 30 days each and the 13th month will be 5 days or 6 days during leap year.
EtDatetime
An instant in time, such as መጋቢት 20, 2012, 8:18pm.

Constants

dayMilliSec → const int
geezNumbers → const Map<int, String>
hourMilliSec → const int
minMilliSec → const int
secMilliSec → const int

Functions

ConvertToEthiopic(int num) String?