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

Function NewMonthDayNanoTupleType

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

Source from the content-addressed store, hash-verified

274}
275
276PyObject* NewMonthDayNanoTupleType() {
277 if (MonthDayNanoTupleType.tp_name == nullptr) {
278 if (PyStructSequence_InitType2(&MonthDayNanoTupleType, &MonthDayNanoTupleDesc) != 0) {
279 Py_FatalError("Could not initialize MonthDayNanoTuple");
280 }
281 }
282 Py_INCREF(&MonthDayNanoTupleType);
283 return (PyObject*)&MonthDayNanoTupleType;
284}
285
286Status PyTime_from_int(int64_t val, const TimeUnit::type unit, PyObject** out) {
287 int64_t hour = 0, minute = 0, second = 0, microsecond = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected