Home
last modified time | relevance | path

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

/DragonOS/kernel/src/time/
H A Dtimeconv.rs88 let mut days = totalsecs / SECS_PER_DAY; in time_to_calendar() localVariable
96 days -= 1; in time_to_calendar()
100 days += 1; in time_to_calendar()
115 result.tm_wday = ((4 + days) % 7) as i32; in time_to_calendar()
118 while days < 0 || (is_leap(year) && days >= 366) || (!is_leap(year) && days >= 365) { in time_to_calendar()
120 let guess_year = year + math_div(days.try_into().unwrap(), 365); in time_to_calendar()
122 days -= ((guess_year - year) * 365 + leaps_between(year, guess_year)) as i64; in time_to_calendar()
126 result.tm_yday = days as i32; in time_to_calendar()
133 if days < i { in time_to_calendar()
138 days -= MON_OF_YDAY[il][mon - 1]; in time_to_calendar()
[all …]
/DragonOS/kernel/crates/rbpf/examples/
H A Duptime.rs68 let days = time / 10u64.pow(9) / 60 / 60 / 24; in main() localVariable
76 time, days, hours, minutes, seconds, nanosec in main()
/DragonOS/kernel/src/driver/rtc/
H A Dmod.rs117 let mut days = days_in_month[month]; in month_days() localVariable
120 days += 1; in month_days()
123 days in month_days()