Searched refs:IsLeapYear (Results 1 – 3 of 3) sorted by relevance
50 bool IsLeapYear(int year) { in IsLeapYear() function55 return kSecondsPerDay * (IsLeapYear(year) ? 366 : 365); in SecondsPerYear()82 if (time.month == 2 && IsLeapYear(time.year)) { in ValidateDateTime()117 if (month > 2 && IsLeapYear(year)) { in SecondsSinceCommonEra()121 time.day <= (month == 2 && IsLeapYear(year) in SecondsSinceCommonEra()235 bool leap = IsLeapYear(year); in SecondsToDateTime()
186 static int IsLeapYear(PRInt16 year) in IsLeapYear() function233 if (IsLeapYear(time->tm_year)) in ApplySecOffset()238 time->tm_mday = nDays[IsLeapYear(time->tm_year)][time->tm_month]; in ApplySecOffset()249 nDays[IsLeapYear(time->tm_year)][time->tm_month]) { in ApplySecOffset()336 time->tm_mday += nDays[IsLeapYear(time->tm_year)][time->tm_month]; in PR_NormalizeTime()339 daysInMonth = nDays[IsLeapYear(time->tm_year)][time->tm_month]; in PR_NormalizeTime()348 daysInMonth = nDays[IsLeapYear(time->tm_year)][time->tm_month]; in PR_NormalizeTime()354 lastDayOfMonth[IsLeapYear(time->tm_year)][time->tm_month]); in PR_NormalizeTime()
17 bool IsLeapYear(int16_t year) { in IsLeapYear() function22 return (IsLeapYear(year) ? 366 : 365); in GetYearDays()46 if (IsLeapYear(year)) in GetMonthDays()