Utilities

ethioqen.utils.get_ethiopian_month_length(year: int, month: int) → int[source]

Get the length of a given Ethiopian month in a specific year.

ethioqen.utils.is_ethiopian_leap_year(year: int) → bool[source]

Determine if the given Ethiopian year is a leap year.

ethioqen.utils.is_valid_ethiopian_date(year: int, month: int, day: int) → bool[source]

Check if the given Ethiopian date is valid.

ethioqen.utils.is_valid_ethiopian_hour(hour: int, minute: int) → bool[source]

Validate Ethiopian clock time (hour 1-12, minute 0-59).

ethioqen.utils.is_valid_gregorian_date(year: int, month: int, day: int) → bool[source]

Check if the given Gregorian (proleptic) date is valid.

ethioqen.utils.is_valid_standard_time(hour: int, minute: int) → bool[source]

Validate standard 24-hour time.

ethioqen.utils.is_valid_time(hour: int, minute: int) → bool[source]

Validate standard 24-hour time (alias of is_valid_standard_time).