[−][src]Struct uefi::table::runtime::Time
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]
year: u16,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8,
nanosecond: u32,
time_zone: i16,
daylight: Daylight
) -> Self
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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Time
[src]
impl Debug for Time
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,