pub struct Date { /* private fields */ }Implementations§
source§impl Date
impl Date
pub fn new() -> Option<Date>
pub fn new_dmy(day: Day, month: Month, year: Year) -> Option<Date>
pub fn new_julian(julian_day: u32) -> Option<Date>
pub fn clear(&mut self)
pub fn set_day(&mut self, day: Day)
pub fn set_month(&mut self, month: Month)
pub fn set_year(&mut self, year: Year)
pub fn set_dmy(&mut self, day: Day, month: Month, year: Year)
pub fn set_julian(&mut self, julian: u32)
pub fn set_time_t(&mut self, timet: i64)
pub fn set_time_val(&mut self, timeval: &mut TimeVal)
pub fn set_parse(&mut self, str_: &str)
pub fn add_days(&mut self, days: u32)
pub fn subtract_days(&mut self, days: u32)
pub fn add_months(&mut self, months: u32)
pub fn subtract_months(&mut self, months: u32)
pub fn add_years(&mut self, years: u32)
pub fn subtract_years(&mut self, years: u32)
pub fn days_between(&self, other: &Date) -> isize
pub fn compare(&self, other: &Date) -> isize
pub fn clamp(&mut self, min_date: &Date, max_date: &Date)
pub fn order(&mut self, other: &mut Date)
pub fn get_day(&self) -> Day
pub fn get_month(&self) -> Month
pub fn get_year(&self) -> Year
pub fn get_julian(&self) -> u32
pub fn get_weekday(&self) -> Weekday
pub fn get_day_of_year(&self) -> u32
pub fn is_first_of_month(&self) -> bool
pub fn is_last_of_month(&self) -> bool
pub fn get_monday_week_of_year(&self) -> u32
pub fn get_sunday_week_of_year(&self) -> u32
pub fn get_iso8601_week_of_year(&self) -> u32
pub fn is_valid(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Date
impl RefUnwindSafe for Date
impl !Send for Date
impl !Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
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