carb::time::asctime_r

Defined in carb/time/Util.h

template<size_t N>
inline char *carb::time::asctime_r(const struct tm *tm, char (&buf)[N]) noexcept

Platform independent version of asctime_r: convert a struct tm into a null-terminated string.

Template Parameters

N – The size of buf; must be at least 26 characters.

Parameters
  • tm – The time component representation.

  • buf – The character buffer to render the string into. Must be at least 26 characters.

Returns

buf, or nullptr if an error occurs.