MCPcopy Create free account
hub / github.com/apache/arrow / PyDate_convert_int

Function PyDate_convert_int

python/pyarrow/src/arrow/python/datetime.cc:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263static inline Status PyDate_convert_int(int64_t val, const DateUnit unit, int64_t* year,
264 int64_t* month, int64_t* day) {
265 switch (unit) {
266 case DateUnit::MILLI:
267 val /= 86400000LL; // fall through
268 case DateUnit::DAY:
269 get_date_from_days(val, year, month, day);
270 default:
271 break;
272 }
273 return Status::OK();
274}
275
276PyObject* NewMonthDayNanoTupleType() {
277 if (MonthDayNanoTupleType.tp_name == nullptr) {

Callers 1

PyDate_from_intFunction · 0.85

Calls 2

get_date_from_daysFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected