Struct rust_rsm::common::datetime_t
source · pub struct datetime_t { /* private fields */ }
Implementations§
source§impl datetime_t
impl datetime_t
pub fn new() -> Self
pub fn get_year(&self) -> u32
pub fn get_mon_in_year(&self) -> u8
pub fn get_day_in_mon(&self) -> u8
pub fn get_hour_in_day(&self) -> u8
pub fn get_min_in_hour(&self) -> u8
pub fn get_secs_in_min(&self) -> u8
pub fn get_day_in_year(&self) -> u16
pub fn prev_ndays(&self, days: u64) -> Self
pub fn prev_secs(&self, secs: u64) -> Self
pub fn to_usecs(&self) -> u64
Trait Implementations§
source§impl Clone for datetime_t
impl Clone for datetime_t
source§fn clone(&self) -> datetime_t
fn clone(&self) -> datetime_t
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