Struct icu_calendar::gregorian::Gregorian
source · [−]pub struct Gregorian;
Expand description
The Gregorian Calendar
Trait Implementations
The calendar-specific month represented by date
The calendar-specific day-of-month represented by date
Information of the day of the year
type DateInner = GregorianDateInner
type DateInner = GregorianDateInner
The internal type used to represent dates
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
Add offset
to date
fn until(
&self,
date1: &Self::DateInner,
date2: &Self::DateInner,
largest_unit: DateDurationUnit,
smallest_unit: DateDurationUnit
) -> DateDuration<Self>
fn until(
&self,
date1: &Self::DateInner,
date2: &Self::DateInner,
largest_unit: DateDurationUnit,
smallest_unit: DateDurationUnit
) -> DateDuration<Self>
Calculate date2 - date
as a duration
Obtain a name for the calendar for debug printing
Calculate the day of the week and return it
Auto Trait Implementations
impl RefUnwindSafe for Gregorian
impl UnwindSafe for Gregorian
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<T, fn(&DataRequest) -> bool>
pub fn filterable(
self,
filter_name: &'static str
) -> RequestFilterDataProvider<T, fn(&DataRequest) -> bool>
Creates a filterable data provider with the given name for debugging. Read more