Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/impala
/ GetWeekOfMonth
Function
GetWeekOfMonth
be/src/runtime/datetime-parser-common.cc:408–410 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
406
}
407
408
int GetWeekOfMonth(int day) {
409
return (day - 1) / 7 + 1;
410
}
411
412
int AdjustYearToLength(int year, int adjust_factor) {
413
if (adjust_factor < 10000) {
Callers
2
Format
Method · 0.85
Format
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected