Lipi Reference Lipi

Functions

second()

The second of a time you supply.

Syntax

                second(series int time, series string timezone) → series int
              

Arguments

time required series int The time to read. Required.
timezone series string The timezone to read it in. Required.

Return Type

series int

Example


          indicator("Second Function Example", overlay=true)
// Get current bar second
currentSecond = second(time)
// Plot second in Data Window
plot(currentSecond, title="Current Second")