DateTimeZone.ZoneHours
Gets the timezone hour of the value.
Syntax
DateTimeZone.ZoneHours(
dateTimeZone as datetimezone
) as number
Remarks
Returns the time zone hour component of a datetimezone value.
dateTimeZone: Adatetimezonevalue from which the time zone hour component is extracted. IfdateTimeZoneisnull, the function returnsnull.
Examples
Example #1
Get the time zone hours component of the specified datetimezone value.
DateTimeZone.ZoneHours(#datetimezone(2024, 4, 28, 13, 24, 22, 7, 30))
Result:
7
Category
DateTimeZone