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

Function PyDateTime_to_s

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

Source from the content-addressed store, hash-verified

102}
103
104ARROW_PYTHON_EXPORT
105inline int64_t PyDateTime_to_s(PyDateTime_DateTime* pydatetime) {
106 return (PyDate_to_s(reinterpret_cast<PyDateTime_Date*>(pydatetime)) +
107 PyDateTime_DATE_GET_HOUR(pydatetime) * 3600LL +
108 PyDateTime_DATE_GET_MINUTE(pydatetime) * 60LL +
109 PyDateTime_DATE_GET_SECOND(pydatetime));
110}
111
112ARROW_PYTHON_EXPORT
113inline int64_t PyDateTime_to_ms(PyDateTime_DateTime* pydatetime) {

Callers 3

ConvertMethod · 0.85
PyDateTime_to_msFunction · 0.85
PyDateTime_to_usFunction · 0.85

Calls 1

PyDate_to_sFunction · 0.85

Tested by

no test coverage detected