EthiopianDateTime constructor
EthiopianDateTime(])
Implementation
EthiopianDateTime(this.year, this.month, this.day,
[this.hour = 0,
this.minute = 0,
this.second = 0,
this.millisecond = 0,
this.microsecond = 0,
this.timeRange = ""])
: super(DateTime.now().year) {
if (day > 30 && month != 13) {
day = 1;
month++;
}
if (day > 6 && year % 4 == 3 && month == 13) {
day = 1;
month = 1;
year++;
}
if (day > 5 && year % 4 != 3 && month == 13) {
day = 1;
month = 1;
year++;
}
if (month > 13) {
month = month % 13;
year++;
}
}