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

Function GetWeekOfYear

be/src/runtime/datetime-parser-common.cc:404–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404int GetWeekOfYear(int year, int month, int day) {
405 return (GetDayInYear(year, month, day) - 1) / 7 + 1;
406}
407
408int GetWeekOfMonth(int day) {
409 return (day - 1) / 7 + 1;

Callers 2

FormatMethod · 0.85
FormatMethod · 0.85

Calls 1

GetDayInYearFunction · 0.85

Tested by

no test coverage detected