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

Name

Description

pday

Receives the whole‐day difference (to ‐ from).

psec

Receives the remaining second difference after whole days are removed.

from

Starting time (UTC).

to

Ending time (UTC).

Created with MrDocs