Primitive
time.compare
BETAShort name: compare
Version: 1.0.0
Compare two instants and return -1, 0, or 1.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| a | string | true | Left ISO-8601 instant. |
| b | string | true | Right ISO-8601 instant. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | number | false | -1 if a < b, 0 if equal, 1 if a > b. |