hour() Function

Function

hour( time )

Returns the hour from the time specified.

Parameters

Keyword Type Description

time

Time

A time or date & time value from which the hour is extracted.

Returns

Integer

Usage considerations

The hour is expressed in 24-hour time (0 for midnight, 13 for 1 PM).

No time shift occurs.

Examples

You can experiment with this function in the test box below.

Test Input

hour(time(14,20,23)) returns 14

Open in Github Built: Fri, Oct 22, 2021 (11:11:24 AM)

On This Page

FEEDBACK