pub struct CivilDateTime { /* private fields */ }Implementations§
Source§impl CivilDateTime
impl CivilDateTime
pub const fn new( date: CivilDate, hour: u32, minute: u32, second: u32, millisecond: u32, ) -> Option<Self>
pub const fn date(self) -> CivilDate
pub const fn year(self) -> i32
pub const fn month(self) -> u32
pub const fn month0(self) -> u32
pub const fn day(self) -> u32
pub const fn day0(self) -> u32
pub fn weekday(self) -> Weekday
pub const fn hour(self) -> u32
pub const fn minute(self) -> u32
pub const fn second(self) -> u32
pub const fn millisecond(self) -> u32
pub fn checked_add_millis(self, milliseconds: i64) -> Option<Self>
pub fn checked_add_days(self, days: i64) -> Option<Self>
pub fn checked_add_months(self, months: i64) -> Option<Self>
pub fn checked_add_years(self, years: i64) -> Option<Self>
pub fn signed_duration_millis_since(self, earlier: Self) -> Option<i64>
Trait Implementations§
Source§impl Clone for CivilDateTime
impl Clone for CivilDateTime
impl Copy for CivilDateTime
Source§impl Debug for CivilDateTime
impl Debug for CivilDateTime
Source§impl Display for CivilDateTime
impl Display for CivilDateTime
impl Eq for CivilDateTime
Source§impl Hash for CivilDateTime
impl Hash for CivilDateTime
Source§impl Ord for CivilDateTime
impl Ord for CivilDateTime
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CivilDateTime
impl PartialEq for CivilDateTime
Source§impl PartialOrd for CivilDateTime
impl PartialOrd for CivilDateTime
impl StructuralPartialEq for CivilDateTime
Auto Trait Implementations§
impl Freeze for CivilDateTime
impl RefUnwindSafe for CivilDateTime
impl Send for CivilDateTime
impl Sync for CivilDateTime
impl Unpin for CivilDateTime
impl UnsafeUnpin for CivilDateTime
impl UnwindSafe for CivilDateTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.