Searched refs:IsLeapYear (Results 1 – 4 of 4) 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()
61 bool IsLeapYear(int year) { in IsLeapYear() function75 const uint16_t* pMonth = IsLeapYear(y) ? leapDaysMonth : daysMonth; in TimeFromYearMonth()110 if (IsLeapYear(YearFromTime(t))) in MonthFromTime()127 int leap = IsLeapYear(year); in DateFromTime()
506 bool IsLeapYear(uint32_t year) { in IsLeapYear() function752 if (month == 2 && day > (IsLeapYear(year) ? 29U : 28U)) in FX_DateFromCanonical()