| 274 | } |
| 275 | |
| 276 | PyObject* 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 | |
| 286 | Status PyTime_from_int(int64_t val, const TimeUnit::type unit, PyObject** out) { |
| 287 | int64_t hour = 0, minute = 0, second = 0, microsecond = 0; |
no outgoing calls
no test coverage detected