ETC class

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.

Create ETC object instances which are days of certain month in a certain year, using one of the constructors.

ETC etc = ETC(year: 2012, month: 7, day: 4);

or

ETC today = ETC.today();

After creating instance of ETC, you can navigate to the future or past of the given date.

ETC _nextMonth = today.nextMonth;
ETC _prevMonth = today.prevMonth;

you can also get the same month of different year (the next year or prev one)

ETC _nextYear = today.nextYear;
ETC _prevYear = today.prevYear;

All the available days within a single month can be found using

var monthDaysIter = today.monthDays();

or just all of the days available in the given year can also be found using

var yearDaysIter = today.yearDays();
Implemented types

Constructors

ETC({required int year, int month = 1, int day = 1})
Construct an ETC instance.
ETC.today()
Construct an ETC instance of the day the object is created.

Properties

allMonths List
All Month names "መስከረም", "ጥቅምት", ... ,"ጷጉሜን"
no setter
day int
Getter property that return day of the current ETC instance.
no setteroverride
dayNumbers List
All Days number in Ge'ez "፩", "፪", ... , "፴"
no setter
hashCode int
The hash code for this object.
no setterinherited
month int
Getter property that return month of the current ETC instance.
no setteroverride
monthName String?
Getter property that return the month name for the current ETC instance.
no setteroverride
nextMonth ETC
Returning ETC instance of same year with a month next to this.
no setter
nextYear ETC
Returning ETC instance of same month with a year next to this.
no setter
prevMonth ETC
Returning ETC instance of same year with a month previous to this.
no setter
prevYear ETC
Returning ETC instance of same month with a year previous to this.
no setter
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
weekdays List
All Day names "ሰኞ", "ማግሰኞ", ... , "እሁድ"
no setter
year int
Getter property that return year of the current ETC instance.
no setteroverride

Methods

monthDays({bool geezDay = false, bool weekDayName = false}) Iterable<List>
Returns Iterable object of List which looks like:
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
yearDays({bool geezDay = false, bool weekDayName = false}) Iterable<Iterable<List>>
Method that can be used to generate all the available days of the year.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited