MCPcopy Create free account
hub / github.com/apache/impala / IsLeapYear

Function IsLeapYear

be/src/runtime/datetime-parser-common.h:339–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337 WARN_UNUSED_RESULT;
338
339inline bool IsLeapYear(int year) {
340 return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
341}
342
343/// Given the year, month and the day in month calculates the day in year.
344int GetDayInYear(int year, int month, int day_in_month);

Callers 5

GetLastDayOfMonthFunction · 0.85
AddInterval<Years>Function · 0.85
ToYearMonthDayMethod · 0.85
GetDayInYearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected