Function localtime_thread_safe#
Defined in File pybind11_chrono_numpy.h
Function Documentation#
-
inline std::tm *localtime_thread_safe(const std::time_t *time, std::tm *buf)#
Get the local time for an input time using std::localtime in a thread safe manner.
- Parameters:
time – Get time to get the localtime for.
buf – The buffer to store the localtime in.
- Returns:
A pointer to the localtime.