carb::time::gmtime_r

Defined in carb/time/Util.h

inline struct tm *carb::time::gmtime_r(const time_t *timep, struct tm *result) noexcept

Platform independent version of gmtime_r: convert a time_t to UTC 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.