get_hour()Get hour value (0 to 23) from the given timestamp
get_hour(timestamp = now(), utc = false)
timestamp (number, optional) — Unix timestamp in seconds. The default value is now()utc (boolean, optional) — Timestamp in UTC. The default value is false
number — Returns hour value
import time
get_hour()
get_hour(create_datetime(2021, 12, 22, 8, 30, 56))