pub struct Julian;
Expand description

The Julian Calendar

The Julian calendar is a solar calendar that was used commonly historically, with twelve months.

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

Era codes

This calendar supports two era codes: "bc", and "ad", corresponding to the BC and AD eras

Implementations

Construct a new Julian Calendar

Trait Implementations

The calendar-specific year represented by date Julian has the same era scheme as Gregorian

The calendar-specific month represented by date

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

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

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

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

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.