DateTimeZone.ZoneHours

About

Returns a time zone hour value from a DateTime value.

Syntax

DateTimeZone.ZoneHours(dateTime as datetimezone) as nullable number  

Arguments

Argument Description
dateTime The DateTimeZone to check against.

Example

DateTimeZone.ZoneHours(DateTime.FromText("12:56:20-08:00")) equals -8