Struct easyfix_messages::fields::UtcTimestamp
source · pub struct UtcTimestamp { /* private fields */ }
Implementations§
source§impl UtcTimestamp
impl UtcTimestamp
sourcepub fn with_secs(date_time: DateTime<Utc>) -> UtcTimestamp
pub fn with_secs(date_time: DateTime<Utc>) -> UtcTimestamp
Creates UtcTimestamp with time precision set to full seconds input’s precision is adjusted to requested one
sourcepub fn with_millis(date_time: DateTime<Utc>) -> UtcTimestamp
pub fn with_millis(date_time: DateTime<Utc>) -> UtcTimestamp
Creates UtcTimestamp with time precision set to milliseconds input’s precision is adjusted to requested one
sourcepub fn with_micros(date_time: DateTime<Utc>) -> UtcTimestamp
pub fn with_micros(date_time: DateTime<Utc>) -> UtcTimestamp
Creates UtcTimestamp with time precision set to microseconds input’s precision is adjusted to requested one
sourcepub fn with_nanos(date_time: DateTime<Utc>) -> UtcTimestamp
pub fn with_nanos(date_time: DateTime<Utc>) -> UtcTimestamp
Creates UtcTimestamp with time precision set to nanoseconds input’s precision is adjusted to requested one
pub fn format<'a>(&self, fmt: &'a str) -> DelayedFormat<StrftimeItems<'a>>
pub fn timestamp(&self) -> DateTime<Utc>
pub fn precision(&self) -> u8
Trait Implementations§
source§impl Clone for UtcTimestamp
impl Clone for UtcTimestamp
source§fn clone(&self) -> UtcTimestamp
fn clone(&self) -> UtcTimestamp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more