[−][src]Struct gregor::NaiveDateTime
A date and time without associated time zone information.
Fields
year: i32
Year number per ISO 8601.
For example, 2016 AC is +2016, 1 AC is +1, 1 BC is 0, 2 BC is -1, etc.
month: Month
day: u8
1st of the month is day 1
hour: u8
minute: u8
second: u8
Methods
impl NaiveDateTime
[src]
pub fn new(
year: i32,
month: Month,
day: u8,
hour: u8,
minute: u8,
second: u8
) -> Self
[src]
year: i32,
month: Month,
day: u8,
hour: u8,
minute: u8,
second: u8
) -> Self
pub fn day_of_the_week(&self) -> DayOfTheWeek
[src]
Trait Implementations
impl Debug for NaiveDateTime
[src]
impl PartialEq<NaiveDateTime> for NaiveDateTime
[src]
fn eq(&self, other: &NaiveDateTime) -> bool
[src]
fn ne(&self, other: &NaiveDateTime) -> bool
[src]
impl Eq for NaiveDateTime
[src]
impl Copy for NaiveDateTime
[src]
impl Clone for NaiveDateTime
[src]
fn clone(&self) -> NaiveDateTime
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for NaiveDateTime
impl Sync for NaiveDateTime
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,