Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
404
int GetWeekOfYear(int year, int month, int day) {
405
return (GetDayInYear(year, month, day) - 1) / 7 + 1;
406
}
407
408
int GetWeekOfMonth(int day) {
409
return (day - 1) / 7 + 1;
Callers
2
Format
Method · 0.85
Format
Method · 0.85
Calls
1
GetDayInYear
Function · 0.85
Tested by
no test coverage detected