Home
last modified time | relevance | path

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

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