Searched refs:year (Results 1 – 3 of 3) sorted by relevance
/kernel/time/ |
D | time_test.c | 9 static bool is_leap(long year) in is_leap() argument 11 return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0); in is_leap() 17 static int last_day_of_month(long year, int month) in last_day_of_month() argument 20 return 28 + is_leap(year); in last_day_of_month() 29 static void advance_date(long *year, int *month, int *mday, int *yday) in advance_date() argument 31 if (*mday != last_day_of_month(*year, *month)) { in advance_date() 46 ++*year; in advance_date() 61 long year = 1970 - 80000; in time64_to_tm_test_date_range() local 77 year, month, mdday, yday, days in time64_to_tm_test_date_range() 79 KUNIT_ASSERT_EQ_MSG(test, year - 1900, result.tm_year, FAIL_MSG); in time64_to_tm_test_date_range() [all …]
|
D | timeconv.c | 50 u64 u64tmp, udays, century, year; in time64_to_tm() local 116 year = 100 * century + year_of_century; in time64_to_tm() 130 year = year + is_Jan_or_Feb - 6313183731940000ULL; in time64_to_tm() 136 result->tm_year = (long) (year - 1900); in time64_to_tm()
|
D | time.c | 435 unsigned int mon = mon0, year = year0; in mktime64() local 440 year -= 1; in mktime64() 444 (year/4 - year/100 + year/400 + 367*mon/12 + day) + in mktime64() 445 year*365 - 719499 in mktime64()
|