[#ASN1_TIME_adj]
= ASN1&lowbar;TIME&lowbar;adj
:mrdocs:

Set an ASN&period;1 Time to `t` plus a day&sol;second offset (UTCTime or GeneralizedTime)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]*
ASN1&lowbar;TIME&lowbar;adj(
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* s,
    time&lowbar;t t,
    int offset&lowbar;day,
    long offset&lowbar;sec);
----

== Return Value

The resulting ASN1&lowbar;TIME (possibly newly allocated), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Existing ASN1&lowbar;TIME to reuse, or NULL to allocate&period;
| *t*
| Base POSIX time before applying offsets&period;
| *offset&lowbar;day*
| Days to add (may be negative)&period;
| *offset&lowbar;sec*
| Seconds to add after `offset&lowbar;day` (may be negative)&period;
|===


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