libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_date_val_compare()

PLIST_API int plist_date_val_compare ( plist_t  datenode,
int32_t  cmpsec,
int32_t  cmpusec 
)

Helper function to compare the value of a PLIST_DATE node against a given set of seconds and fraction of a second since epoch.

Deprecated:
Deprecated. Use plist_unix_date_val_compare instead.
Parameters
datenodenode of type PLIST_DATE
cmpsecnumber of seconds since epoch to compare against
cmpusecfraction of a second in microseconds to compare against
Returns
0 if the node's date is equal to the supplied values, 1 if the node's date is greater than the supplied values, or -1 if the node's date is less than the supplied values.