[][src]Struct mcp794xx::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 (e.g. 2000)

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 PartialEq<DateTime> for DateTime[src]

impl Copy for DateTime[src]

impl Debug for DateTime[src]

impl Clone for DateTime[src]

Auto Trait Implementations

impl Unpin for DateTime

impl Send for DateTime

impl Sync for DateTime

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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