[−][src]Struct utc_datetime::UTCDatetime
Methods
impl UTCDatetime
[src]
pub fn new(
year: u16,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8
) -> Result<UTCDatetime, IllegalTimeError>
[src]
year: u16,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8
) -> Result<UTCDatetime, IllegalTimeError>
pub fn get_timestamp(&self) -> Result<u32, IllegalTimeError>
[src]
pub fn day_of_the_week(&self) -> u8
[src]
pub fn equals(&self, sd: &UTCDatetime) -> bool
[src]
pub fn compare_to(&self, sd: &UTCDatetime) -> bool
[src]
pub fn from_string(time_str: &str) -> Result<UTCDatetime, IllegalTimeError>
[src]
Trait Implementations
impl Display for UTCDatetime
[src]
impl PartialEq<UTCDatetime> for UTCDatetime
[src]
fn eq(&self, other: &UTCDatetime) -> bool
[src]
fn ne(&self, other: &UTCDatetime) -> bool
[src]
impl PartialOrd<UTCDatetime> for UTCDatetime
[src]
fn partial_cmp(&self, other: &UTCDatetime) -> Option<Ordering>
[src]
fn lt(&self, other: &UTCDatetime) -> bool
[src]
fn le(&self, other: &UTCDatetime) -> bool
[src]
fn gt(&self, other: &UTCDatetime) -> bool
[src]
fn ge(&self, other: &UTCDatetime) -> bool
[src]
impl StructuralPartialEq for UTCDatetime
[src]
Auto Trait Implementations
impl RefUnwindSafe for UTCDatetime
impl Send for UTCDatetime
impl Sync for UTCDatetime
impl Unpin for UTCDatetime
impl UnwindSafe for UTCDatetime
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,
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.
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>,