localtime_r#
Fully qualified name: carb::time::localtime_r
Defined in carb/time/Util.h
- inline struct tm *carb::time::localtime_r(
- const time_t *timep,
- struct tm *result,
Platform independent version of localtime_r: convert a
time_t
to local timezone component representation.- Parameters:
timep – A pointer to a
time_t
.result – A pointer to a
struct tm
that will receive the result.
- Returns:
result
if conversion succeeded;nullptr
if the year does not fit into an integer or an error occurs.