Ethiopian class
Constructors
- Ethiopian(int year, int month, int day)
- Ethiopian.fromDate(DateTime date)
- Constructor: Create Ethiopian date from Gregorian DateTime
- Ethiopian.now()
-
Creates a Hijri instance from today's Gregorian date.
factory
Properties
Methods
-
isWeekend(
) → bool -
monthLength(
) → int - Returns number of days in this instance's month
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toGreg(
) → DateTime - Converts the current instance to Gregorian
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromGregorian(
DateTime gDate) → Ethiopian - Converts Gregorian DateTime to Ethiopian (static)
-
getDaysInMonth(
int year, int month) → int - Returns number of days in a given Ethiopian month
-
isLeapYear(
int year) → bool - Check if Ethiopian year is a leap year (every 4 years).
-
toGregorian(
Ethiopian date) → DateTime - Converts Ethiopian date to Gregorian DateTime (static)