[#ASN1_TIME_to_generalizedtime]
= ASN1&lowbar;TIME&lowbar;to&lowbar;generalizedtime
:mrdocs:

Convert an ASN1&lowbar;TIME to GeneralizedTime form&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]*
ASN1&lowbar;TIME&lowbar;to&lowbar;generalizedtime(
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME] const* t,
    xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]** out);
----

== Return Value

Pointer to the GeneralizedTime result, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *t*
| Source time (UTCTime or GeneralizedTime)&period;
| *out*
| Optional destination&semi; if non&hyphen;NULL and &ast;`out` is non&hyphen;NULL it is reused, otherwise a new value is allocated and returned via &ast;`out` when `out` is non&hyphen;NULL&period;
|===


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