duration
A length of time measured in seconds — how long to wait, or how long something lasted.
- SCALAR
What is it
A seconds-denominated span (TimeDomain.DURATION_SECONDS). Only seconds belong here: a span counted in days or bars is a plain num (see num.duration).
- SCALARtime.durationint64
What is it a kind of
Any tool that accepts time accepts this.
Who makes it
No tool makes this type directly.
Who takes it
- Through time
- 28 tools take any time
How do I turn it into something else
- Needs a tool
Clock
| time.epoch | seconds since 1970 (UTC) | EPOCH_SECONDS | when did it happen |
|---|---|---|---|
| time.bar | a bar index on the chart | BAR_INDEX | how many bars ago |
| time.duration | a span in seconds | DURATION_SECONDS | how long |
These never mix: a bar index is not a time, and a duration is not a date. The validator refuses a wire between two clock domains, and nothing converts between them — compute the other one with a time tool.