hour()

Examples


The hour() function returns the hours portion of a given time value.

Syntax

hour(time)

Parameters

time – A time or datetime value

Return value

An integer between 0 and 23.


Documentation Feedback