Searched refs:month (Results 1 – 2 of 2) sorted by relevance
/kernel/time/ |
D | time_test.c | 17 static int last_day_of_month(long year, int month) in last_day_of_month() argument 19 if (month == 2) in last_day_of_month() 21 if (month == 4 || month == 6 || month == 9 || month == 11) 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() 38 if (*month != 12) { in advance_date() 39 ++*month; in advance_date() 44 *month = 1; in advance_date() 62 int month = 1; in time64_to_tm_test_date_range() local 77 year, month, mdday, yday, days in time64_to_tm_test_date_range() [all …]
|
D | timeconv.c | 49 u32 u32tmp, day_of_century, year_of_century, day_of_year, month, day; in time64_to_tm() local 120 month = u32tmp >> 16; in time64_to_tm() 131 month = is_Jan_or_Feb ? month - 12 : month; in time64_to_tm() 137 result->tm_mon = (int) month; in time64_to_tm()
|