Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/time/
Dtimekeep.rs31 let mut day_count: i32 = 0; in ktime_get_real() localVariable
35 day_count += 366; in ktime_get_real()
37 day_count += 365; in ktime_get_real()
44 1 | 3 | 5 | 7 | 8 | 10 | 12 => day_count += 31, in ktime_get_real()
45 2 => day_count += 28, in ktime_get_real()
46 4 | 6 | 9 | 11 => day_count += 30, in ktime_get_real()
47 _ => day_count += 0, in ktime_get_real()
52 day_count += rtc_time.day - 1; in ktime_get_real()
55 let timestamp: ktime_t = day_count as i64 * 86_400_000_000_000i64 in ktime_get_real()