hour() Function

Returns the hour from the time specified.

Syntax

hour( time )

time: (Time) A time or date & time value from which the hour is extracted.

Returns

Integer

Notes

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

No time shift occurs.

Examples

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

Open in Github Built: Wed, Aug 10, 2022 (03:45:09 PM)

On This Page

FEEDBACK