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

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

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]

fn clone(&self) -> Time[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Time[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Copy 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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.