Struct fm_plugin::ffi::datetime::DateTime [−][src]
Implementations
impl DateTime
[src]
pub fn new() -> Self
[src]
pub fn from_str(date: &str) -> Self
[src]
pub fn from_str_with_locale(date: &str, locale: Locale) -> Self
[src]
pub fn from_text(text: Text) -> Self
[src]
pub fn from_text_with_locale(text: Text, locale: Locale) -> Self
[src]
pub fn normalize_date_fixed_point(
&mut self,
year: FixPt,
month: FixPt,
day: FixPt
)
[src]
&mut self,
year: FixPt,
month: FixPt,
day: FixPt
)
pub fn normalize_date_i16(&mut self, year: i16, month: i16, day: i16)
[src]
pub fn normalize_time_fixed_point(
&mut self,
hours: FixPt,
minutes: FixPt,
seconds: FixPt
)
[src]
&mut self,
hours: FixPt,
minutes: FixPt,
seconds: FixPt
)
pub fn normalize_time_i64(
&mut self,
hours: i32,
minutes: i16,
seconds: i16,
milliseconds: i32
)
[src]
&mut self,
hours: i32,
minutes: i16,
seconds: i16,
milliseconds: i32
)
pub fn get_days_since_epoch(&mut self) -> i32
[src]
pub fn get_seconds_since_epoch(&mut self) -> FixPt
[src]
pub fn set_days_since_epoch(&mut self, days: i32)
[src]
pub fn set_seconds_since_epoch(&mut self, seconds: FixPt)
[src]
pub fn set_seconds_since_midnight(&mut self, seconds: FixPt)
[src]
pub fn get_seconds_since_midnight(&mut self) -> FixPt
[src]
pub fn from_ptr(ptr: *const fmx_DateTime) -> Self
[src]
pub fn is_leap_year(&self) -> bool
[src]
pub fn day_of_week(&self) -> i16
[src]
pub fn day_of_year(&self) -> i16
[src]
pub fn week_of_year(&self) -> i16
[src]
pub fn now() -> Self
[src]
pub fn hours(&self) -> i32
[src]
pub fn minutes(&self) -> i16
[src]
pub fn seconds(&self) -> i16
[src]
pub fn milliseconds(&self) -> i32
[src]
pub fn seconds_fixed_point(&self) -> FixPt
[src]
pub fn day(&self) -> i16
[src]
pub fn month(&self) -> i16
[src]
pub fn year(&self) -> i16
[src]
pub fn set_date<D: ToDateTime>(&mut self, datetime: D)
[src]
pub fn set_time<D: ToDateTime>(&mut self, datetime: D)
[src]
Trait Implementations
impl Debug for DateTime
[src]
impl Default for DateTime
[src]
impl Display for DateTime
[src]
impl Drop for DateTime
[src]
impl From<&'_ str> for DateTime
[src]
impl From<String> for DateTime
[src]
impl From<Text> for DateTime
[src]
impl PartialEq<DateTime> for DateTime
[src]
impl ToDateTime for DateTime
[src]
fn to_datetime(self) -> DateTime
[src]
Auto Trait Implementations
impl RefUnwindSafe for DateTime
impl !Send for DateTime
impl !Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?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>,