pub struct Time(/* private fields */);Implementations§
Source§impl Time
impl Time
pub const EPOCH: Self
pub fn now() -> Self
pub const fn to_span_since_epoch(self) -> Span
pub const fn of_span_since_epoch(span: Span) -> Self
pub const fn to_int_ns_since_epoch(self) -> i64
pub const fn of_int_ns_since_epoch(ns: i64) -> Self
pub fn to_date_ofday(self, tz: Tz) -> (Date, OfDay)
pub fn to_date_ofday_gmt(self) -> (Date, OfDay)
pub fn to_date(self, tz: Tz) -> Date
pub fn to_ofday(self, tz: Tz) -> OfDay
pub fn of_date_ofday(date: Date, ofday: OfDay, tz: Tz) -> Result<Self, TzError>
pub fn of_date_ofday_gmt(date: Date, ofday: OfDay) -> Self
pub fn to_string_gmt(self) -> String
pub fn write_tz<W: Write>(self, w: &mut W, tz: Tz) -> Result<(), Error>
pub fn to_string_tz(self, tz: Tz) -> String
pub const fn prev_multiple(self, rhs: Span) -> Self
pub const fn next_multiple(self, rhs: Span) -> Self
Trait Implementations§
Source§impl AddAssign<Span> for Time
impl AddAssign<Span> for Time
Source§fn add_assign(&mut self, other: Span)
fn add_assign(&mut self, other: Span)
Performs the
+= operation. Read moreSource§impl BinProtRead for Time
impl BinProtRead for Time
fn binprot_read<__BinProtR: Read + ?Sized>( __binprot_r: &mut __BinProtR, ) -> Result<Self, Error>
Source§impl BinProtWrite for Time
impl BinProtWrite for Time
fn binprot_write<__BinProtW: Write>( &self, __binprot_w: &mut __BinProtW, ) -> Result<()>
Source§impl<'de> Deserialize<'de> for Time
impl<'de> Deserialize<'de> for Time
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Time
impl Ord for Time
Source§impl PartialOrd for Time
impl PartialOrd for Time
Source§impl SubAssign<Span> for Time
impl SubAssign<Span> for Time
Source§fn sub_assign(&mut self, other: Span)
fn sub_assign(&mut self, other: Span)
Performs the
-= operation. Read moreimpl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
Blanket Implementations§
Source§impl<T> BinProtSize for Twhere
T: BinProtWrite,
impl<T> BinProtSize for Twhere
T: BinProtWrite,
fn binprot_size(&self) -> usize
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