DateTimeZone.ZoneHours
Syntax
DateTimeZone.ZoneHours(dateTimeZone as nullable datetimezone) as nullable number
About
Returns the time zone hour component of a datetimezone
value.
dateTimeZone
: Adatetimezone
value from which the time zone hour component is extracted. IfdateTimeZone
isnull
, the function returnsnull
.
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