Creates a duration measured in milliseconds.
Use it when
Create a structured non-negative duration from a whole amount and explicit unit.
Input, configuration, and output
- Optional Value overrides Amount.
- Unit supports milliseconds, seconds, minutes, hours, and days.
- Duration contains the normalized whole millisecond count.
Rules
Amounts must be whole, finite, and non-negative. The maximum is 100 years. A connected structured duration is checked before the workflow continues and already uses milliseconds. Fractions, overflow, negative values, extra structured fields, and unknown units stop the workflow.
Example: amount 2 with unit minutes produces 120000 milliseconds.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
amount | Amount | number | 0 | step 1 |
unit | Unit | toggle | milliseconds | options: Milliseconds (milliseconds), Seconds (seconds), Minutes (minutes), Hours (hours), Days (days) |
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.
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 | value — Value | any | no |
| Output | result — Duration | duration | on success |
