Convert a time_t to UTC broken‐down time into caller‐provided storage.

Synopsis

Declared in <openssl/crypto.h>

tm*
OPENSSL_gmtime(
    time_t const* timer,
    tm* result);

Return Value

result on success, or NULL on error.

Parameters

Name

Description

timer

Instant to convert.

result

Destination struct tm (thread‐safe alternative to gmtime()).

Created with MrDocs