Searched refs:year (Results 1 – 5 of 5) sorted by relevance
45 fn is_leap(year: u32) -> bool { in is_leap()47 if (year % 4 == 0 && year % 100 != 0) || year % 400 == 0 { in is_leap()117 let mut year = 1970; in time_to_calendar() localVariable118 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()123 year = guess_year; in time_to_calendar()125 result.tm_year = (year - 1900) as i32; in time_to_calendar()128 if is_leap(year) { in time_to_calendar()
182 let mut year: u64 = year0.into(); in mktime64() localVariable193 year -= 1; in mktime64()197 let secs = ((((year / 4 - year / 100 + year / 400 + 367 * mon / 12 + day) + year * 365 in mktime64()
69 pub year: i32, field99 !(self.year < 70 in valid()100 || self.year > (i32::MAX - 1900) in valid()128 let year = self.year + 1900; in is_leap_year() localVariable129 (year % 4 == 0 && year % 100 != 0) || year % 400 == 0 in is_leap_year()133 self.year + 1900 in year_real()
257 res.year = dev.read_cmos(CMOSTimeSelector::Year as u8) as i32; in read_time()281 res.year = (res.year & 0xf) + (res.year >> 4) * 10; in read_time()283 res.year += 100; in read_time()
294 Copyright (C) <year> <name of author>315 Gnomovision version 69, Copyright (C) year name of author