Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimeZone

Represents the time zone of a particular location. This may be used to convert from UTC to local (street) time.

Hierarchy

  • TimeZone

Index

Constructors

constructor

  • new TimeZone(gmtOffset: number, hasDst: boolean, dstStartDay: number, dstStartWeek: number, dstStartMonth: number, dstStartTime: number, dstStartType: DayType, dstEndDay: number, dstEndWeek: number, dstEndMonth: number, dstEndTime: number, dstEndType: DayType): TimeZone
  • Initializes a TimeZone object.

    Parameters

    • gmtOffset: number
    • hasDst: boolean
    • dstStartDay: number
    • dstStartWeek: number
    • dstStartMonth: number
    • dstStartTime: number
    • dstStartType: DayType
    • dstEndDay: number
    • dstEndWeek: number
    • dstEndMonth: number
    • dstEndTime: number
    • dstEndType: DayType

    Returns TimeZone

Properties

dstEndDay

dstEndDay: number

The day that daylight savings ends; as a number. If [dstStartType] is DayOfWeek then this is a day of the week (1-7), otherwise this is a day of the month (1-31).

dstEndMonth

dstEndMonth: number

The month that daylight savings ends; as a number. Valid range is 1 to 12.

dstEndTime

dstEndTime: number

The time of day that daylight savings ends; as a number. The values are in half-hours, e.g., the value 4 indicates 2am.

dstEndType

dstEndType: DayType

The way in which the end of daylight savings is implemented; either as a day of the week or as a day of the month.

dstEndWeek

dstEndWeek: number

The week of the month that daylight savings ends; as a number. Valid range is 1 to 6; 6 is a special case representing the last week of the month. Only applicable if startType is DayOfMonth.

dstStartDay

dstStartDay: number

The day that daylight savings starts; as a number. If [dstStartType] is DayOfWeek then this is a day of the week (1-7), otherwise this is a day of the month (1-31).

dstStartMonth

dstStartMonth: number

The month that daylight savings starts; as a number. Valid range is 1 to 12.

dstStartTime

dstStartTime: number

The time of day that daylight savings starts; as a number. The values are in half-hours, e.g., the value 4 indicates 2am.

dstStartType

dstStartType: DayType

The way in which the start of daylight savings is implemented; either as a day of the week or as a day of the month.

dstStartWeek

dstStartWeek: number

The week of the month that daylight savings starts; as a number. Valid range is 1 to 6; 6 is a special case representing the last week of the month. Only applicable if startType is DayOfMonth.

gmtOffset

gmtOffset: number

The difference between this TimeZone and UTC, in hours.

hasDst

hasDst: boolean

Whether or not this TimeZone has daylight savings.

Static ASSEMBLY_NAME

ASSEMBLY_NAME: string = GEOBASE_ASSEMBLY_NAME

Static CLASS_NAME

CLASS_NAME: string = "Telogis.GeoBase.TimeZone"

Generated using TypeDoc