Skip to content
StatePath
All data types

epoch

A point in time, stored as the number of seconds since 1970 (UTC).

  • BUFFER
  • SCALAR

What is it

Used for the clock, not for prices.

UTC timestamp as int64 (TimeDomain.EPOCH_SECONDS).

  • SCALARtime.epochint64
  • BUFFERtime.epochint64

What is it a kind of

Any tool that accepts time accepts this.

Siblings

Who makes it

Who takes it

Exactly this
Through time
28 tools take any time

How do I turn it into something else

Fromtime.epoch
Becomes a flat series
SCALAR → BUFFER
Needs a tool

Clock

time.epochseconds since 1970 (UTC)EPOCH_SECONDSwhen did it happen
time.bara bar index on the chartBAR_INDEXhow many bars ago
time.durationa span in secondsDURATION_SECONDShow 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.