pub struct Ethiopian(_);
Expand description

The Ethiopian Calendar

The Ethiopian calendar is a solar calendar used by the Coptic Orthodox Church, with twelve normal months and a thirteenth small epagomenal month.

This type can be used with Date or DateTime to represent dates in this calendar.

It can be constructed in two modes: using the Amete Alem era scheme, or the Amete Mihret era scheme (the default), see EthiopianEraStyle for more info.

Era codes

This calendar supports three era codes, based on what mode it is in. In the Amete Mihret scheme it has the "incar" and "pre-incar" eras, 1 Incarnation is 9 CE. In the Amete Alem scheme, it instead has a single era, "mundi, where 1 Anno Mundi is 5493 BCE. Dates before that use negative year numbers.

Implementations

Construct a new Ethiopian Calendar for the Amete Mihret era naming scheme

Construct a new Ethiopian Calendar with a value specifying whether or not it is Amete Alem

Set whether or not this uses the Amete Alem era scheme

Returns whether this has the Amete Alem era

Trait Implementations

The internal type used to represent dates

Construct a date from era/month codes and fields

Construct the date from an ISO date

Obtain an ISO date from this date

Count the number of months in a given year, specified by providing a date from that year Read more

Count the number of days in a given year, specified by providing a date from that year Read more

Count the number of days in a given month, specified by providing a date from that year/month Read more

Calculate the day of the week and return it

The calendar-specific year represented by date

The calendar-specific month represented by date

The calendar-specific day-of-month represented by date

Information of the day of the year

Obtain a name for the calendar for debug printing

The AnyCalendarKind corresponding to this calendar, if one exists. Implementors outside of icu_calendar should return None Read more

The Unicode BCP 47 identifier for the calendar If multiple BCP 47 identifiers work, this should be the default one when no others are provided Read more

The data marker for loading symbols for this calendar.

The data marker for loading length-patterns for this calendar.

Checks if a given BCP 47 identifier is allowed to be used with this calendar Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Convert this calendar into an AnyCalendar, moving it Read more

Convert this calendar into an AnyCalendar, cloning it Read more

Convert a date for this calendar into an AnyDateInner Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The calendar being wrapped

Obtain the inner calendar

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.