Measure two DateTimes with an absolute Duration plus signed milliseconds and a direction indicator.
Inputs
- Start (datetime, required): valid DateTime value.
- End (datetime, required): valid DateTime value.
Outputs
- Absolute Duration (duration): valid non-negative Duration value.
- Signed Milliseconds (number): strict finite number.
- Direction (number): strict finite number.
How it behaves
Absolute Duration is always non-negative. Signed Milliseconds is End minus Start, and Direction is -1, 0, or 1. The absolute distance is limited to 100 years.
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Execution stops for malformed DateTimes or a distance larger than the Duration contract permits.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | start — Start | datetime | yes |
| Input | end — End | datetime | yes |
| Output | result — Absolute Duration | duration | on success |
| Output | signedMilliseconds — Signed Milliseconds | number | on success |
| Output | direction — Direction | number | on success |
