Struct glib::DateTime [−][src]
pub struct DateTime(_);
Methods
impl DateTime[src]
impl DateTimepub fn new(
tz: &TimeZone,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime[src]
pub fn new(
tz: &TimeZone,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTimepub fn new_from_iso8601<'a, P: Into<Option<&'a TimeZone>>>(
text: &str,
default_tz: P
) -> DateTime[src]
pub fn new_from_iso8601<'a, P: Into<Option<&'a TimeZone>>>(
text: &str,
default_tz: P
) -> DateTimepub fn new_from_unix_local(t: i64) -> DateTime[src]
pub fn new_from_unix_local(t: i64) -> DateTimepub fn new_from_unix_utc(t: i64) -> DateTime[src]
pub fn new_from_unix_utc(t: i64) -> DateTimepub fn new_local(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime[src]
pub fn new_local(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTimepub fn new_now(tz: &TimeZone) -> DateTime[src]
pub fn new_now(tz: &TimeZone) -> DateTimepub fn new_now_local() -> DateTime[src]
pub fn new_now_local() -> DateTimepub fn new_now_utc() -> DateTime[src]
pub fn new_now_utc() -> DateTimepub fn new_utc(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime[src]
pub fn new_utc(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTimepub fn add(&self, timespan: TimeSpan) -> Option<DateTime>[src]
pub fn add(&self, timespan: TimeSpan) -> Option<DateTime>pub fn add_days(&self, days: i32) -> Option<DateTime>[src]
pub fn add_days(&self, days: i32) -> Option<DateTime>pub fn add_full(
&self,
years: i32,
months: i32,
days: i32,
hours: i32,
minutes: i32,
seconds: f64
) -> Option<DateTime>[src]
pub fn add_full(
&self,
years: i32,
months: i32,
days: i32,
hours: i32,
minutes: i32,
seconds: f64
) -> Option<DateTime>pub fn add_hours(&self, hours: i32) -> Option<DateTime>[src]
pub fn add_hours(&self, hours: i32) -> Option<DateTime>pub fn add_minutes(&self, minutes: i32) -> Option<DateTime>[src]
pub fn add_minutes(&self, minutes: i32) -> Option<DateTime>pub fn add_months(&self, months: i32) -> Option<DateTime>[src]
pub fn add_months(&self, months: i32) -> Option<DateTime>pub fn add_seconds(&self, seconds: f64) -> Option<DateTime>[src]
pub fn add_seconds(&self, seconds: f64) -> Option<DateTime>pub fn add_weeks(&self, weeks: i32) -> Option<DateTime>[src]
pub fn add_weeks(&self, weeks: i32) -> Option<DateTime>pub fn add_years(&self, years: i32) -> Option<DateTime>[src]
pub fn add_years(&self, years: i32) -> Option<DateTime>pub fn difference(&self, begin: &DateTime) -> TimeSpan[src]
pub fn difference(&self, begin: &DateTime) -> TimeSpanpub fn format(&self, format: &str) -> Option<String>[src]
pub fn format(&self, format: &str) -> Option<String>pub fn get_day_of_month(&self) -> i32[src]
pub fn get_day_of_month(&self) -> i32pub fn get_day_of_week(&self) -> i32[src]
pub fn get_day_of_week(&self) -> i32pub fn get_day_of_year(&self) -> i32[src]
pub fn get_day_of_year(&self) -> i32pub fn get_hour(&self) -> i32[src]
pub fn get_hour(&self) -> i32pub fn get_microsecond(&self) -> i32[src]
pub fn get_microsecond(&self) -> i32pub fn get_minute(&self) -> i32[src]
pub fn get_minute(&self) -> i32pub fn get_month(&self) -> i32[src]
pub fn get_month(&self) -> i32pub fn get_second(&self) -> i32[src]
pub fn get_second(&self) -> i32pub fn get_seconds(&self) -> f64[src]
pub fn get_seconds(&self) -> f64pub fn get_timezone_abbreviation(&self) -> Option<String>[src]
pub fn get_timezone_abbreviation(&self) -> Option<String>pub fn get_utc_offset(&self) -> TimeSpan[src]
pub fn get_utc_offset(&self) -> TimeSpanpub fn get_week_numbering_year(&self) -> i32[src]
pub fn get_week_numbering_year(&self) -> i32pub fn get_week_of_year(&self) -> i32[src]
pub fn get_week_of_year(&self) -> i32pub fn get_year(&self) -> i32[src]
pub fn get_year(&self) -> i32pub fn get_ymd(&self) -> (i32, i32, i32)[src]
pub fn get_ymd(&self) -> (i32, i32, i32)pub fn is_daylight_savings(&self) -> bool[src]
pub fn is_daylight_savings(&self) -> boolpub fn to_local(&self) -> Option<DateTime>[src]
pub fn to_local(&self) -> Option<DateTime>pub fn to_timezone(&self, tz: &TimeZone) -> Option<DateTime>[src]
pub fn to_timezone(&self, tz: &TimeZone) -> Option<DateTime>pub fn to_unix(&self) -> i64[src]
pub fn to_unix(&self) -> i64pub fn to_utc(&self) -> Option<DateTime>[src]
pub fn to_utc(&self) -> Option<DateTime>Trait Implementations
impl Debug for DateTime[src]
impl Debug for DateTimefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for DateTime[src]
impl Clone for DateTimefn clone(&self) -> DateTime[src]
fn clone(&self) -> DateTimeReturns 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 DateTime[src]
impl StaticType for DateTimefn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl PartialOrd for DateTime[src]
impl PartialOrd for DateTimefn 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) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis 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) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for DateTime[src]
impl Ord for DateTimefn cmp(&self, other: &Self) -> Ordering[src]
fn cmp(&self, other: &Self) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialEq for DateTime[src]
impl PartialEq for DateTimefn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for DateTime[src]
impl Eq for DateTimeimpl Hash for DateTime[src]
impl Hash for DateTimefn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
fn hash<H>(&self, state: &mut H) where
H: Hasher, Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Send for DateTime[src]
impl Send for DateTimeimpl Sync for DateTime[src]
impl Sync for DateTime