[#ASN1_TIME_diff]
= ASN1&lowbar;TIME&lowbar;diff
:mrdocs:

Compute the day and second difference between two ASN&period;1 time values&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 if either time is invalid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pday*
| Receives the whole&hyphen;day difference (`to` minus `from)&semi;` may be NULL&period;
| *psec*
| Receives the remaining seconds difference beyond `pday&semi;` may be NULL&period;
| *from*
| Starting time&period;
| *to*
| Ending time&period;
|===


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