[#ASN1_TIME_compare]
= ASN1&lowbar;TIME&lowbar;compare
:mrdocs:

Compare two ASN&period;1 time values chronologically&period;

== Synopsis

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

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

== Return Value

1 if `a` is later than `b,` &hyphen;1 if `a` is earlier, 0 if equal, or &hyphen;2 if either time is invalid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| First time&period;
| *b*
| Second time&period;
|===


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