OPENSSL_gmtime_diff

Compute the day/second difference between two broken-down UTC times.

Synopsis

Declared in <openssl/crypto.h>

int
OPENSSL_gmtime_diff(
    int* pday,
    int* psec,
    tm const* from,
    tm const* to);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pdayReceives the whole-day difference (to - from).
psecReceives the remaining second difference after whole days are removed.
fromStarting time (UTC).
toEnding time (UTC).