pub struct AwsDateTime { /* private fields */ }
Implementations
sourceimpl AwsDateTime
impl AwsDateTime
pub fn now() -> AwsDateTime
pub fn from_epoch_millis(ms_since_epoch: u64) -> AwsDateTime
pub fn from_epoch_secs(sec_ms: f64) -> AwsDateTime
pub fn from_str(
date_str: &str,
fmt: AwsDateFormat
) -> Result<AwsDateTime, Box<dyn Error + Send + Sync + 'static>>
pub fn get_timestamp(&self) -> time_t
pub fn to_local_time_str(&self, format: AwsDateFormat) -> String
pub fn to_utc_time_str(&self, format: AwsDateFormat) -> String
Trait Implementations
sourceimpl Debug for AwsDateTime
impl Debug for AwsDateTime
Auto Trait Implementations
impl RefUnwindSafe for AwsDateTime
impl Send for AwsDateTime
impl Sync for AwsDateTime
impl Unpin for AwsDateTime
impl UnwindSafe for AwsDateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more