Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/time/
Dtimekeep.rs28 let mut day_count: i32 = 0; in ktime_get_real() localVariable
32 day_count += 366; in ktime_get_real()
34 day_count += 365; in ktime_get_real()
39 1 | 3 | 5 | 7 | 8 | 10 | 12 => day_count += 31, in ktime_get_real()
40 2 => day_count += 28, in ktime_get_real()
41 4 | 6 | 9 | 11 => day_count += 30, in ktime_get_real()
42 _ => day_count += 0, in ktime_get_real()
46 day_count += rtc_time.day - 1; in ktime_get_real()
48 let timestamp: ktime_t = day_count as i64 * 86_400_000_000_000i64 in ktime_get_real()