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

Function PyDateTime_to_TimePoint

python/pyarrow/src/arrow/python/datetime.h:129–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129ARROW_PYTHON_EXPORT
130inline TimePoint PyDateTime_to_TimePoint(PyDateTime_DateTime* pydatetime) {
131 return TimePoint(TimePoint::duration(PyDateTime_to_ns(pydatetime)));
132}
133
134ARROW_PYTHON_EXPORT
135inline int64_t TimePoint_to_ns(TimePoint val) { return val.time_since_epoch().count(); }

Callers

nothing calls this directly

Calls 2

PyDateTime_to_nsFunction · 0.85
durationFunction · 0.50

Tested by

no test coverage detected