[#ASN1_UTCTIME_cmp_time_t]
= ASN1&lowbar;UTCTIME&lowbar;cmp&lowbar;time&lowbar;t
:mrdocs:

Compare an ASN&period;1 UTCTime 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;UTCTIME&lowbar;cmp&lowbar;time&lowbar;t(
    xref:ASN1_UTCTIME.adoc[ASN1&lowbar;UTCTIME] const* s,
    time&lowbar;t t);
----

== Return Value

&hyphen;1 if `s` is before `t,` 0 if equal, 1 if after, or 0 on parse error (check ERR)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| UTCTime value to compare (must be a valid ASN1&lowbar;UTCTIME)&period;
| *t*
| POSIX time to compare against&period;
|===


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