Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.5/kernel/src/driver/timers/rtc/
Drtc.rs9 pub hour: i32, field
20 hour: (0), in default()
54 self.hour = read_cmos(CMOSTimeSelector::Hour as u8) as i32; in get()
72 self.hour = ((self.hour & 0xf) + ((self.hour & 0x70) >> 4) * 10) | (self.hour & 0x80); in get()
79 if (!is_24h) && (self.hour & 0x80) != 0 { in get()
80 self.hour = ((self.hour & 0x7f) + 12) % 24; in get()
/DragonOS-0.1.5/kernel/src/time/
Dtimekeep.rs49 + (rtc_time.hour - 8) as i64 * 3_600_000_000_000i64 in ktime_get_real()