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

Function TimePoint_from_s

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

Source from the content-addressed store, hash-verified

135inline int64_t TimePoint_to_ns(TimePoint val) { return val.time_since_epoch().count(); }
136
137ARROW_PYTHON_EXPORT
138inline TimePoint TimePoint_from_s(double val) {
139 return TimePoint(TimePoint::duration(static_cast<int64_t>(1e9 * val)));
140}
141
142ARROW_PYTHON_EXPORT
143inline TimePoint TimePoint_from_ns(int64_t val) {

Callers

nothing calls this directly

Calls 1

durationFunction · 0.50

Tested by

no test coverage detected