Primitive
time.diff
BETAShort name: diff
Version: 1.0.0
Return signed time delta from one instant to another.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| from | string | true | Start ISO-8601 instant. |
| to | string | true | End ISO-8601 instant. |
| unit | string | false | Unit: "seconds", "minutes", "hours", or "days". Defaults to "seconds". |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | number | false | Signed delta in selected units (to - from). |