Lipi Reference Lipi

Variables

time

The bar's opening time, as an int series. It counts milliseconds from the Unix epoch. Note the unit: it is milliseconds, not seconds, so anything expecting seconds needs the value divided by a thousand first. Hand it to one of the date functions - `year`, `month`, `hour` and the rest - together with a timezone to take it apart.

Example


          indicator(title="Time Example", overlay=true)
plot(time, title="Bar Time", color=color.blue)
        

Type

series int