Struct glib::Date
[−]
[src]
pub struct Date(_);
Methods
impl Date[src]
fn new() -> Date[src]
fn new_dmy(day: DateDay, month: DateMonth, year: DateYear) -> Date[src]
fn new_julian(julian_day: u32) -> Date[src]
fn add_days(&mut self, n_days: u32)[src]
fn add_months(&mut self, n_months: u32)[src]
fn add_years(&mut self, n_years: u32)[src]
fn clamp(&mut self, min_date: &Date, max_date: &Date)[src]
fn clear(&mut self, n_dates: u32)[src]
fn days_between(&self, date2: &Date) -> i32[src]
fn get_day(&self) -> DateDay[src]
fn get_day_of_year(&self) -> u32[src]
fn get_iso8601_week_of_year(&self) -> u32[src]
fn get_julian(&self) -> u32[src]
fn get_monday_week_of_year(&self) -> u32[src]
fn get_month(&self) -> DateMonth[src]
fn get_sunday_week_of_year(&self) -> u32[src]
fn get_weekday(&self) -> DateWeekday[src]
fn get_year(&self) -> DateYear[src]
fn is_first_of_month(&self) -> bool[src]
fn is_last_of_month(&self) -> bool[src]
fn order(&mut self, date2: &mut Date)[src]
fn set_day(&mut self, day: DateDay)[src]
fn set_dmy(&mut self, day: DateDay, month: DateMonth, y: DateYear)[src]
fn set_julian(&mut self, julian_date: u32)[src]
fn set_month(&mut self, month: DateMonth)[src]
fn set_parse(&mut self, str: &str)[src]
fn set_time(&mut self, time_: Time)[src]
fn set_time_t(&mut self, timet: c_long)[src]
fn set_year(&mut self, year: DateYear)[src]
fn subtract_days(&mut self, n_days: u32)[src]
fn subtract_months(&mut self, n_months: u32)[src]
fn subtract_years(&mut self, n_years: u32)[src]
fn valid(&self) -> bool[src]
fn get_days_in_month(month: DateMonth, year: DateYear) -> u8[src]
fn get_monday_weeks_in_year(year: DateYear) -> u8[src]
fn get_sunday_weeks_in_year(year: DateYear) -> u8[src]
fn is_leap_year(year: DateYear) -> bool[src]
fn strftime(s: &str, format: &str, date: &Date) -> usize[src]
fn valid_day(day: DateDay) -> bool[src]
fn valid_dmy(day: DateDay, month: DateMonth, year: DateYear) -> bool[src]
fn valid_julian(julian_date: u32) -> bool[src]
fn valid_month(month: DateMonth) -> bool[src]
fn valid_weekday(weekday: DateWeekday) -> bool[src]
fn valid_year(year: DateYear) -> bool[src]
Trait Implementations
impl Clone for Date[src]
fn clone(&self) -> Date[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Date[src]
impl StaticType for Date[src]
fn static_type() -> Type[src]
Returns the type identifier of Self.
impl Send for Date[src]
impl Default for Date[src]
impl PartialEq for Date[src]
fn eq(&self, other: &Self) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for Date[src]
impl PartialOrd for Date[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Date[src]
fn cmp(&self, other: &Self) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.22.0[src]
Compares and returns the minimum of two values. Read more