gmtime_r()

Thread-safe conversion of a time_t value to Coordinated Universal Time (UTC).

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

time

A pointer to a time value.

st

A pointer to a time structure.

Remarks

This function provides the same service as gmtime(). Unlike gmtime(), this function requires that the caller provides the storage for the tm structure. The gmtime_r() function always returns the value of st.

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.