pub struct Time {
pub days: u16,
pub hours: u8,
pub minutes: u8,
pub seconds: u8,
}Available on
gb_pak_rtc and crate feature pak only.Expand description
What the clock counts: time since it was set, not a calendar date.
days runs to 511 and then wraps, setting Latch::overflowed. A game that
wants a date keeps its own epoch and adds this to it.
Fields§
§days: u16§hours: u8§minutes: u8§seconds: u8Trait Implementations§
impl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl BankSafe for Time
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnsafeUnpin for Time
impl UnwindSafe for Time
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more