Home
last modified time | relevance | path

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

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