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

Method WeekDay

be/src/runtime/date-value.cc:249–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249int DateValue::WeekDay() const {
250 if (UNLIKELY(!IsValid())) return -1;
251 const cctz::civil_day cd = EPOCH_DATE + days_since_epoch_;
252 return static_cast<int>(cctz::get_weekday(cd));
253}
254
255int DateValue::DayOfYear() const {
256 if (UNLIKELY(!IsValid())) return -1;

Callers 8

DayOfWeekMethod · 0.80
LongDayNameMethod · 0.80
NextDayMethod · 0.80
GoBackToWeekdayFunction · 0.80
DoTruncFunction · 0.80
TESTFunction · 0.80
FormatMethod · 0.80
GetDayOfWeekMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64