Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/rtc/
H A Dmod.rs63 pub hour: i32, field
95 format!("{:02}:{:02}:{:02}", self.hour, self.minute, self.second) in time_string()
105 || self.hour >= 24 in valid()
106 || self.hour < 0 in valid()
147 val.hour as u32, in from()
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs260 res.hour = dev.read_cmos(CMOSTimeSelector::Hour as u8) as i32; in read_time()
278 res.hour = ((res.hour & 0xf) + ((res.hour & 0x70) >> 4) * 10) | (res.hour & 0x80); in read_time()
285 if (!is_24h) && (res.hour & 0x80) != 0 { in read_time()
286 res.hour = ((res.hour & 0x7f) + 12) % 24; in read_time()
/DragonOS/kernel/src/time/
H A Dmod.rs180 pub fn mktime64(year0: u32, mon0: u32, day: u32, hour: u32, min: u32, sec: u32) -> Self { in mktime64()
184 let hour: u64 = hour.into(); in mktime64() localVariable
199 * 24 + hour) /* now have hours - midnight tomorrow handled here */ in mktime64()