OPENSSL_gmtime_adj

Add a day/second offset to a UTC struct tm in place.

Synopsis

Declared in <openssl/crypto.h>

int
OPENSSL_gmtime_adj(
    tm* tm,
    int offset_day,
    long offset_sec);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
tmTime value to adjust (UTC).
offset_dayNumber of days to add (may be negative).
offset_secNumber of seconds to add (may be negative).