Поділитися через


DateTimeZone.ZoneHours

Syntax

DateTimeZone.ZoneHours(dateTimeZone as nullable datetimezone) as nullable number

About

Returns the time zone hour component of a datetimezone value.

  • dateTimeZone: A datetimezone value from which the time zone hour component is extracted. If dateTimeZone is null, the function returns null.

Example 1

Get the time zone hours component of the specified datetimezone value.

Usage

DateTimeZone.ZoneHours(#datetimezone(2024, 4, 28, 13, 24, 22, 7, 30))

Output

7