[#ASN1_TIME_to_tm]
= ASN1&lowbar;TIME&lowbar;to&lowbar;tm
:mrdocs:

Convert an ASN&period;1 time value to a broken&hyphen;down UTC struct tm&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;TIME&lowbar;to&lowbar;tm(
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME] const* s,
    tm* tm);
----

== Return Value

1 on success, or 0 if `s` is invalid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| ASN1&lowbar;TIME (UTCTime or GeneralizedTime) to convert&period;
| *tm*
| Destination calendar time in UTC&semi; may be NULL to only validate `s&period;`
|===


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