Struct gstreamer::DateTime [−][src]
Implementations
impl DateTime
[src]
pub fn new(
tzoffset: f32,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> Result<DateTime, BoolError>
[src]
tzoffset: f32,
year: i32,
month: i32,
day: i32,
hour: i32,
minute: i32,
seconds: f64
) -> Result<DateTime, BoolError>
pub fn from_g_date_time(dt: &DateTime) -> Result<DateTime, BoolError>
[src]
pub fn from_iso8601_string(string: &str) -> Result<DateTime, BoolError>
[src]
pub fn from_unix_epoch_local_time(secs: i64) -> DateTime
[src]
pub fn from_unix_epoch_local_time_usecs(usecs: i64) -> DateTime
[src]
pub fn from_unix_epoch_utc(secs: i64) -> DateTime
[src]
pub fn from_unix_epoch_utc_usecs(usecs: i64) -> DateTime
[src]
pub fn new_local_time(
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_local_time() -> DateTime
[src]
pub fn new_now_utc() -> DateTime
[src]
pub fn new_y(year: i32) -> Result<DateTime, BoolError>
[src]
pub fn new_ym(year: i32, month: i32) -> Result<DateTime, BoolError>
[src]
pub fn new_ymd(year: i32, month: i32, day: i32) -> Result<DateTime, BoolError>
[src]
pub fn get_day(&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_time_zone_offset(&self) -> f32
[src]
pub fn get_year(&self) -> i32
[src]
pub fn has_day(&self) -> bool
[src]
pub fn has_month(&self) -> bool
[src]
pub fn has_second(&self) -> bool
[src]
pub fn has_time(&self) -> bool
[src]
pub fn has_year(&self) -> bool
[src]
pub fn to_g_date_time(&self) -> Result<DateTime, BoolError>
[src]
pub fn to_iso8601_string(&self) -> Result<GString, BoolError>
[src]
impl DateTime
[src]
Trait Implementations
impl Clone for DateTime
[src]
impl Debug for DateTime
[src]
impl<'de> Deserialize<'de> for DateTime
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Display for DateTime
[src]
impl PartialEq<DateTime> for DateTime
[src]
impl PartialOrd<DateTime> for DateTime
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Send for DateTime
[src]
impl<'a> Serialize for DateTime
[src]
impl StaticType for DateTime
[src]
fn static_type() -> Type
[src]
impl Sync for DateTime
[src]
impl<'a> TryFrom<&'a DateTime> for DateTime
[src]
type Error = BoolError
The type returned in the event of a conversion error.
fn try_from(v: &'a DateTime) -> Result<DateTime, BoolError>
[src]
impl TryFrom<DateTime> 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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.
pub fn to_owned(&self) -> T
[src]
pub 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,
pub fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub 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>,