[][src]Struct biblatex::Datetime

pub struct Datetime {
    pub year: i32,
    pub month: Option<u8>,
    pub day: Option<u8>,
    pub time: Option<NaiveTime>,
}

Timezone-unaware date and time.

Must specify a year and may specify month, day, and time.

Fields

year: i32

The year.

AD years are counted starting from one and thus represented as exactly their year (e.g. 2000 AD is 2000) whereas BC years are counted starting from zero downwards (e.g. 1000 BC is 999)

month: Option<u8>

The month (starting at zero).

day: Option<u8>

The day (starting at zero).

time: Option<NaiveTime>

The timezone-unaware time.

Trait Implementations

impl Clone for Datetime[src]

impl Copy for Datetime[src]

impl Debug for Datetime[src]

impl Display for Datetime[src]

impl Eq for Datetime[src]

impl PartialEq<Datetime> for Datetime[src]

impl PartialOrd<Datetime> for Datetime[src]

impl StructuralEq for Datetime[src]

impl StructuralPartialEq for Datetime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.