[][src]Struct ds1307::DateTime

pub struct DateTime {
    pub year: u16,
    pub month: u8,
    pub day: u8,
    pub weekday: u8,
    pub hour: Hours,
    pub minute: u8,
    pub second: u8,
}

Date and time

Fields

year: u16

Year [2000-2099]

month: u8

Month [1-12]

day: u8

Day [1-31]

weekday: u8

Weekday [1-7]

hour: Hours

Hour in 24h/12h format

minute: u8

Minute [0-59]

second: u8

Second [0-59]

Trait Implementations

impl Clone for DateTime[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DateTime[src]

impl PartialEq<DateTime> for DateTime[src]

impl Copy for DateTime[src]

Auto Trait Implementations

impl Send for DateTime

impl Sync for DateTime

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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.

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

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

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

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