[#ASN1_TIME_cmp_time_t]
= ASN1&lowbar;TIME&lowbar;cmp&lowbar;time&lowbar;t
:mrdocs:

Compare an ASN&period;1 time value with a calendar time&lowbar;t&period;

== Synopsis

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

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

== Return Value

&hyphen;1 if `s` is before `t,` 0 if equal, 1 if after, or &hyphen;2 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| ASN1&lowbar;TIME (UTCTime or GeneralizedTime) to compare&period;
| *t*
| POSIX time to compare against&period;
|===


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