localtime_r()

Thread-safe conversion of a value of type time_t to a structure of type tm.

  #include <extras/extras_time.h> 
  struct tm * localtime_r(const time_t * time, struct tm * ts);   
Parameter

time

A pointer to a time value to convert.

ts

A pointer to a time structure in which to store the converted time information.

Remarks

This function provides the same service as localtime(), but is reentrant. Unlike localtime() this function requires that the caller provides the storage for the tm structure.

The function always returns the value of ts.

This function may require extra library support.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.

This facility may not be available on some configurations of the EWL.