[−][src]Struct glib::Date
Methods
impl Date
[src]
pub fn new() -> Date
[src]
pub fn new_dmy(day: DateDay, month: DateMonth, year: DateYear) -> Date
[src]
pub fn new_julian(julian_day: u32) -> Date
[src]
pub fn add_days(&mut self, n_days: u32)
[src]
pub fn add_months(&mut self, n_months: u32)
[src]
pub fn add_years(&mut self, n_years: u32)
[src]
pub fn clamp(&mut self, min_date: &Date, max_date: &Date)
[src]
pub fn clear(&mut self, n_dates: u32)
[src]
pub fn days_between(&self, date2: &Date) -> i32
[src]
pub fn get_day(&self) -> DateDay
[src]
pub fn get_day_of_year(&self) -> u32
[src]
pub fn get_iso8601_week_of_year(&self) -> u32
[src]
pub fn get_julian(&self) -> u32
[src]
pub fn get_monday_week_of_year(&self) -> u32
[src]
pub fn get_month(&self) -> DateMonth
[src]
pub fn get_sunday_week_of_year(&self) -> u32
[src]
pub fn get_weekday(&self) -> DateWeekday
[src]
pub fn get_year(&self) -> DateYear
[src]
pub fn is_first_of_month(&self) -> bool
[src]
pub fn is_last_of_month(&self) -> bool
[src]
pub fn order(&mut self, date2: &mut Date)
[src]
pub fn set_day(&mut self, day: DateDay)
[src]
pub fn set_dmy(&mut self, day: DateDay, month: DateMonth, y: DateYear)
[src]
pub fn set_julian(&mut self, julian_date: u32)
[src]
pub fn set_month(&mut self, month: DateMonth)
[src]
pub fn set_parse(&mut self, str: &str)
[src]
pub fn set_time(&mut self, time_: Time)
[src]
pub fn set_time_t(&mut self, timet: c_long)
[src]
pub fn set_year(&mut self, year: DateYear)
[src]
pub fn subtract_days(&mut self, n_days: u32)
[src]
pub fn subtract_months(&mut self, n_months: u32)
[src]
pub fn subtract_years(&mut self, n_years: u32)
[src]
pub fn valid(&self) -> bool
[src]
pub fn get_days_in_month(month: DateMonth, year: DateYear) -> u8
[src]
pub fn get_monday_weeks_in_year(year: DateYear) -> u8
[src]
pub fn get_sunday_weeks_in_year(year: DateYear) -> u8
[src]
pub fn is_leap_year(year: DateYear) -> bool
[src]
pub fn strftime(s: &str, format: &str, date: &Date) -> usize
[src]
pub fn valid_day(day: DateDay) -> bool
[src]
pub fn valid_dmy(day: DateDay, month: DateMonth, year: DateYear) -> bool
[src]
pub fn valid_julian(julian_date: u32) -> bool
[src]
pub fn valid_month(month: DateMonth) -> bool
[src]
pub fn valid_weekday(weekday: DateWeekday) -> bool
[src]
pub fn valid_year(year: DateYear) -> bool
[src]
Trait Implementations
impl Clone for Date
[src]
impl Debug for Date
[src]
impl Default for Date
[src]
impl Eq for Date
[src]
impl Hash for Date
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Date
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Date> for Date
[src]
impl PartialOrd<Date> for Date
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Send for Date
[src]
impl StaticType for Date
[src]
fn static_type() -> Type
[src]
impl Sync for Date
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&Self) -> SendValue
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,