Lipi Reference Lipi

Functions

month()

The month of a time you supply. Same two required arguments as `year`.

Syntax

                month(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("Month Function Example", overlay=true)
// Get current bar month
currentMonth = month(time)
// Plot month in Data Window
plot(currentMonth, title="Current Month")