Compare datetimes
Compares datetime values
Evaluation
This expression evaluates to a function of the form:
(a, b) -> long
The function is consistent with sort order semantics of the Sort step.
Processing
Arguments a and b are compared and one of the following values is returned:
0ifaandbrepresent the same instant in time-1ifarepresents an instant earlier in time thanb1ifarepresents an instant later in time thanb
An error is thrown if either a or b is not a datetime and not nil
Settings
| Name | Type | Description |
|---|---|---|
Nil values |
string |
Defines how to sort
|