Lipi Reference Lipi

Functions

month()

Month (in exchange timezone) for provided UNIX time.

Syntax

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

Arguments

time required series int
timezone required series string

Return Type

series int

Example


          indicator("Month Function Example", overlay=true)
// Get current bar month
currentMonth = month(time)
// Plot month in Data Window
plot(currentMonth, title="Current Month")