pub struct DateTime<A: AsCalendar> {
    pub date: Date<A>,
    pub time: Time,
}
Expand description

A date+time for a given calendar

This can work with wrappers arount Calendar types, e.g. Rc<C>, via the AsCalendar trait, much like Date

Fields

date: Date<A>time: Time

Implementations

Construct a new Buddhist datetime from integers

Years are specified as BE years

Construct a DateTime from an ISO datetime and some calendar representation

Convert the DateTime to an ISO DateTime

Convert the DateTime to a DateTime in a different calendar

Construct a new Gregorian datetime from integers

Years are specified as ISO years

Construct a new ISO date from integers

Constrict a new Julian datetime form integers

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Creates a filterable data provider with the given name for debugging. Read more

Performs the conversion.

Performs the conversion.

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.