HOUR

Scripting Formulas Time & Date

TIME.HOUR

TIME.HOUR(value)

Returns the hour for a datetime value as a number 0-23.