[−][src]Struct glib::DateTime
Methods
impl DateTime
[src][−]
pub fn new(
tz: &TimeZone,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime
[src]
tz: &TimeZone,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime
pub fn new_from_iso8601(
text: &str,
default_tz: Option<&TimeZone>
) -> Option<DateTime>
[src]
text: &str,
default_tz: Option<&TimeZone>
) -> Option<DateTime>
pub fn new_from_unix_local(t: i64) -> DateTime
[src]
pub fn new_from_unix_utc(t: i64) -> DateTime
[src]
pub fn new_local(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime
[src]
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime
pub fn new_now(tz: &TimeZone) -> DateTime
[src]
pub fn new_now_local() -> DateTime
[src]
pub fn new_now_utc() -> DateTime
[src]
pub fn new_utc(
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime
[src]
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> DateTime
pub fn add(&self, timespan: TimeSpan) -> Option<DateTime>
[src]
pub fn add_days(&self, days: i32) -> Option<DateTime>
[src]
pub fn add_full(
&self,
years: i32,
months: i32,
days: i32,
hours: i32,
minutes: i32,
seconds: f64
) -> Option<DateTime>
[src]
&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_minutes(&self, minutes: i32) -> Option<DateTime>
[src]
pub fn add_months(&self, months: i32) -> Option<DateTime>
[src]
pub fn add_seconds(&self, seconds: f64) -> Option<DateTime>
[src]
pub fn add_weeks(&self, weeks: i32) -> Option<DateTime>
[src]
pub fn add_years(&self, years: i32) -> Option<DateTime>
[src]
pub fn difference(&self, begin: &DateTime) -> TimeSpan
[src]
pub fn format(&self, format: &str) -> Option<GString>
[src]
pub fn format_iso8601(&self) -> Option<GString>
[src]
pub fn get_day_of_month(&self) -> i32
[src]
pub fn get_day_of_week(&self) -> i32
[src]
pub fn get_day_of_year(&self) -> i32
[src]
pub fn get_hour(&self) -> i32
[src]
pub fn get_microsecond(&self) -> i32
[src]
pub fn get_minute(&self) -> i32
[src]
pub fn get_month(&self) -> i32
[src]
pub fn get_second(&self) -> i32
[src]
pub fn get_seconds(&self) -> f64
[src]
pub fn get_timezone(&self) -> Option<TimeZone>
[src]
pub fn get_timezone_abbreviation(&self) -> Option<GString>
[src]
pub fn get_utc_offset(&self) -> TimeSpan
[src]
pub fn get_week_numbering_year(&self) -> i32
[src]
pub fn get_week_of_year(&self) -> i32
[src]
pub fn get_year(&self) -> i32
[src]
pub fn get_ymd(&self) -> (i32, i32, i32)
[src]
pub fn is_daylight_savings(&self) -> bool
[src]
pub fn to_local(&self) -> Option<DateTime>
[src]
pub fn to_timezone(&self, tz: &TimeZone) -> Option<DateTime>
[src]
pub fn to_unix(&self) -> i64
[src]
pub fn to_utc(&self) -> Option<DateTime>
[src]
Trait Implementations
impl Clone for DateTime
[src][+]
impl Debug for DateTime
[src][+]
impl Eq for DateTime
[src]
impl Hash for DateTime
[src][+]
impl Ord for DateTime
[src][+]
impl PartialEq<DateTime> for DateTime
[src][+]
impl PartialOrd<DateTime> for DateTime
[src][+]
impl Send for DateTime
[src]
impl StaticType for DateTime
[src][+]
impl Sync for DateTime
[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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,