[][src]Struct uefi::table::runtime::Time

#[repr(C)]pub struct Time { /* fields omitted */ }

The current time information

Implementations

impl Time[src]

pub fn new(
    year: u16,
    month: u8,
    day: u8,
    hour: u8,
    minute: u8,
    second: u8,
    nanosecond: u32,
    time_zone: i16,
    daylight: Daylight
) -> Self
[src]

Build an UEFI time struct

pub fn year(&self) -> u16[src]

Query the year

pub fn month(&self) -> u8[src]

Query the month

pub fn day(&self) -> u8[src]

Query the day

pub fn hour(&self) -> u8[src]

Query the hour

pub fn minute(&self) -> u8[src]

Query the minute

pub fn second(&self) -> u8[src]

Query the second

pub fn nanosecond(&self) -> u32[src]

Query the nanosecond

pub fn time_zone(&self) -> Option<i16>[src]

Query the time offset in minutes from UTC, or None if using local time

pub fn daylight(&self) -> Daylight[src]

Query the daylight savings time information

Trait Implementations

impl Clone for Time[src]

impl Copy for Time[src]

impl Debug for Time[src]

Auto Trait Implementations

impl Send for Time

impl Sync for Time

impl Unpin for Time

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, 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.