[#OPENSSL_gmtime_adj]
= OPENSSL&lowbar;gmtime&lowbar;adj
:mrdocs:

Add a day&sol;second offset to a UTC struct tm in place&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OPENSSL&lowbar;gmtime&lowbar;adj(
    tm* tm,
    int offset&lowbar;day,
    long offset&lowbar;sec);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tm*
| Time value to adjust (UTC)&period;
| *offset&lowbar;day*
| Number of days to add (may be negative)&period;
| *offset&lowbar;sec*
| Number of seconds to add (may be negative)&period;
|===


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