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:
0
ifa
andb
represent the same instant in time-1
ifa
represents an instant earlier in time thanb
1
ifa
represents 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
|