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