The ts_datetime_cmp() function
The ts_datetime_cmp() function compares two time stamps and returns a value that indicates whether tstamp1 is before, equal to, or after tstamp2.
Syntax
mi_integer
ts_datetime_cmp(mi_datetime *tstamp1,
mi_datetime *tstamp2)
- tstamp1
- The first time stamp to compare.
- tstamp2
- The second time stamp to compare.
Returns
- < 0
- If tstamp1 comes before tstamp2.
- 0
- If tstamp1 equals tstamp2.
- > 0
- If tstamp1 comes after tstamp2.