[#ASN1_TIME_compare] = ASN1_TIME_compare :mrdocs: Compare two ASN.1 time values chronologically. == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int ASN1_TIME_compare( xref:ASN1_TIME.adoc[ASN1_TIME] const* a, xref:ASN1_TIME.adoc[ASN1_TIME] const* b); ---- == Return Value 1 if `a` is later than `b,` ‐1 if `a` is earlier, 0 if equal, or ‐2 if either time is invalid. == Parameters [cols="1,4"] |=== | Name| Description | *a* | First time. | *b* | Second time. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#