Struct icu_calendar::DateTime
source · [−]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 DateTime from an ISO datetime and some calendar representation
Convert the DateTime to a DateTime in a different calendar
Trait Implementations
Auto Trait Implementations
impl<A> RefUnwindSafe for DateTime<A> where
A: RefUnwindSafe,
<<A as AsCalendar>::Calendar as Calendar>::DateInner: RefUnwindSafe,
impl<A> Send for DateTime<A> where
A: Send,
<<A as AsCalendar>::Calendar as Calendar>::DateInner: Send,
impl<A> Sync for DateTime<A> where
A: Sync,
<<A as AsCalendar>::Calendar as Calendar>::DateInner: Sync,
impl<A> Unpin for DateTime<A> where
A: Unpin,
<<A as AsCalendar>::Calendar as Calendar>::DateInner: Unpin,
impl<A> UnwindSafe for DateTime<A> where
A: UnwindSafe,
<<A as AsCalendar>::Calendar as Calendar>::DateInner: UnwindSafe,
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