Home
last modified time | relevance | path

Searched refs:IsLeapYear (Results 1 – 4 of 4) 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/fxjs/
Dfx_date_helpers.cpp61 bool IsLeapYear(int year) { in IsLeapYear() function
75 const uint16_t* pMonth = IsLeapYear(y) ? leapDaysMonth : daysMonth; in TimeFromYearMonth()
110 if (IsLeapYear(YearFromTime(t))) in MonthFromTime()
127 int leap = IsLeapYear(year); in DateFromTime()
/external/pdfium/xfa/fgas/crt/
Dcfgas_stringformatter.cpp506 bool IsLeapYear(uint32_t year) { in IsLeapYear() function
752 if (month == 2 && day > (IsLeapYear(year) ? 29U : 28U)) in FX_DateFromCanonical()