DateTimeUtil::getTimeZoneOffset Method

Gets the offset of the specified utcdatetime value to UTC by using the information in a Timezone enumeration value.

Syntax

client server public static int getTimeZoneOffset(utcdatetime t, Timezone tz)

Run On

Called

Parameters

  • t
    Type: utcdatetime
    The utcdatetime value for which to find the offset.
  • tz
    Type: Timezone Enumeration
    A Timezone enumeration value that indicates the time zone of the t parameter.

Return Value

Type: int
An integer that indicates the offset of the specified utcdatetime value to UTC.

See Also

Reference

DateTimeUtil Class