Skip to main content

Time.Hour

Returns the hour component.

Syntax

Time.Hour(
dateTime as any
) as number

Remarks

Returns the hour component of the provided time, datetime, or datetimezone value, dateTime.

Examples

Example #1

Find the hour in #datetime(2011, 12, 31, 9, 15, 36).

Time.Hour(#datetime(2011, 12, 31, 9, 15, 36))

Result:

9

Category

Time