[#ASN1_TIME_set]
= ASN1&lowbar;TIME&lowbar;set
:mrdocs:

Set an ASN&period;1 Time to the given POSIX time (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;set(
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* s,
    time&lowbar;t t);
----

== Return Value

The updated or newly allocated ASN1&lowbar;TIME, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Existing ASN1&lowbar;TIME to reuse, or NULL to allocate&period;
| *t*
| POSIX time to store&period;
|===


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