[#OPENSSL_gmtime_diff]
= OPENSSL&lowbar;gmtime&lowbar;diff
:mrdocs:

Compute the day&sol;second difference between two broken&hyphen;down UTC times&period;

== Synopsis

Declared in `&lt;openssl&sol;crypto&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OPENSSL&lowbar;gmtime&lowbar;diff(
    int* pday,
    int* psec,
    tm const* from,
    tm const* to);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pday*
| Receives the whole&hyphen;day difference (`to` &hyphen; `from)&period;`
| *psec*
| Receives the remaining second difference after whole days are removed&period;
| *from*
| Starting time (UTC)&period;
| *to*
| Ending time (UTC)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
