[#ASN1_UTCTIME_set]
= ASN1&lowbar;UTCTIME&lowbar;set
:mrdocs:

Set an ASN1&lowbar;UTCTIME to the calendar time `t` (allocating when `s` is NULL)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_UTCTIME.adoc[ASN1&lowbar;UTCTIME]*
ASN1&lowbar;UTCTIME&lowbar;set(
    xref:ASN1_UTCTIME.adoc[ASN1&lowbar;UTCTIME]* s,
    time&lowbar;t t);
----

== Return Value

The UTCTIME on success (possibly newly allocated), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Existing UTCTIME to reuse, or NULL to allocate a new one&period;
| *t*
| POSIX time (seconds since the Epoch)&period;
|===


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