Hop til hovedindhold

Time.Hour

Returnerer timekomponenten.

Syntax

Time.Hour(
dateTime as any
) as number

Remarks

Returnerer timekomponenten af den angivne værdi af typen time, datetime eller datetimezone, dateTime.

Examples

Example #1

Find timen i #datetime(2011, 12, 31, 9, 15, 36).

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

Result:

9

Category

Time