Gjsify LogoGjsify Logo

A timezone.

Timezones are global to the GWeather world (as obtained by gweather_location_get_world()); they can be gotten by passing gweather_timezone_get_by_tzid() with a tzid like "America/New_York" or "Europe/London".

record

Hierarchy

  • Timezone

Index

Constructors

Properties

name: string

Methods

  • getDstOffset(): number
  • Gets zone's daylight/summer time offset from UTC, in minutes. Eg, a value of 120 would indicate "GMT+2". This is only meaningful if gweather_timezone_has_dst() returns %TRUE.

    Returns number

  • getName(): string
  • Gets zone's name; a translated, user-presentable string.

    Note that the returned name might not be unique among timezones, and may not make sense to the user unless it is presented along with the timezone's country's name (or in some context where the country is obvious).

    Returns string

  • getOffset(): number
  • Gets zone's standard offset from UTC, in minutes. Eg, a value of 120 would indicate "GMT+2".

    Returns number

  • getTzid(): string
  • hasDst(): boolean
  • Checks if zone observes daylight/summer time for part of the year.

    Returns boolean

  • unref(): void
  • Subtracts 1 from zone's reference count and frees it if it reaches 0.

    Returns void

  • Get the #GWeatherTimezone for tzid.

    Prior to version 40 no reference was returned.

    Parameters

    • tzid: string

      A timezone identifier, like "America/New_York" or "Europe/London"

    Returns GWeather.Timezone

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method