Functions
year()
Year (in exchange timezone) for provided UNIX time.
Syntax
year(series int time, series string timezone) → series int
Arguments
time required series int timezone required series string Return Type
series int Example
indicator("Year Function Example", overlay=true)
// Get current bar year
currentYear = year(time)
// Plot year in Data Window
plot(currentYear, title="Current Year")