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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for datetime_t
impl RefUnwindSafe for datetime_t
impl Send for datetime_t
impl Sync for datetime_t
impl Unpin for datetime_t
impl UnwindSafe for datetime_t
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