| description | Learn more about: DateTimeZone.ZoneHours |
|---|---|
| title | DateTimeZone.ZoneHours |
| ms.subservice | m-source |
| ms.topic | reference |
DateTimeZone.ZoneHours(dateTimeZone as nullable datetimezone) as nullable number
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.
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