Home
last modified time | relevance | path

Searched refs:IsLeapYear (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/stubs/
Dtime.cc50 bool IsLeapYear(int year) { in IsLeapYear() function
55 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()
/external/libchrome/base/third_party/nspr/
Dprtime.cc186 static int IsLeapYear(PRInt16 year) in IsLeapYear() function
233 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()
/external/pdfium/fpdfsdk/
Dcpdfsdk_datetime.cpp17 bool IsLeapYear(int16_t year) { in IsLeapYear() function
22 return (IsLeapYear(year) ? 366 : 365); in GetYearDays()
46 if (IsLeapYear(year)) in GetMonthDays()