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