Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/driver/timers/rtc/
Drtc.c36 t->hour = read_cmos(0x04); in rtc_get_cmos_time()
47 t->hour = ((t->hour & 0xf) + ((t->hour & 0x70) >> 4) * 10) | (t->hour & 0x80); in rtc_get_cmos_time()
54 if ((!is_24h) && t->hour & 0x80) // 将十二小时制转为24小时 in rtc_get_cmos_time()
55 t->hour = ((t->hour & 0x7f) + 12) % 24; in rtc_get_cmos_time()
Drtc.h7 int hour; member
/DragonOS-0.1.2/kernel/src/time/
Dtimekeep.rs20 hour: (0), in ktime_get_real()
56 + (rtc_time.hour - 8) as i64 * 3_600_000_000_000i64 in ktime_get_real()