Struct glib::DateTime [−][src]
pub struct DateTime(_);Implementations
pub fn new(
tz: &TimeZone,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> Result<DateTime, BoolError>
This is supported on crate feature
v2_56 only.pub fn new_local(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> Result<DateTime, BoolError>
pub fn new_utc(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> Result<DateTime, BoolError>
pub fn add_full(
&self,
years: i32,
months: i32,
days: i32,
hours: i32,
minutes: i32,
seconds: f64
) -> Result<DateTime, BoolError>
This is supported on crate feature
v2_62 only.This is supported on crate feature
v2_58 only.Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Returns the type identifier of Self.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue clone of self.