libplist  2.7.0
API Documentation - Return to Homepage

◆ plist_unix_date_val_compare()

PLIST_API int plist_unix_date_val_compare ( plist_t  datenode,
int64_t  cmpval 
)

Helper function to compare the value of a PLIST_DATE node against a given number of seconds since epoch (UNIX timestamp).

Parameters
datenodenode of type PLIST_DATE
cmpvalNumber of seconds to compare against (UNIX timestamp)
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.