Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimeZoneInfo

Contains information about a specific timezone.

Hierarchy

  • TimeZoneInfo

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Initializes a new instance of the TimeZoneInfo class.

    Parameters

    • name: string

      The name of the time zone.

    Returns TimeZoneInfo

Properties

baseUtcOffset

baseUtcOffset: number

Gets the standard offset of the timezone in hours.

name

name: string

Gets the name of the timezone.

Static localTimeZone

localTimeZone: ITimeZoneInfo = new SystemTimeZoneInfo(LocalNativeTimeZone.Name, LocalNativeTimeZone.BaseUtcOffset)

Gets the timezone in which the host application was started.

Methods

getUtcOffset

  • getUtcOffset(date: Date): any
  • Returns the offset of the timezone at the specified date in hours.

    Parameters

    • date: Date

      The date at which the offset should be calculated. This takes daylight saving time etc. into account.

    Returns any

Generated using TypeDoc