@magiclane/maps-sdk
    Preparing search index...

    Class TimezoneResult

    Result which contains all information about a timezone

    This class should not be instantiated directly. Instead, use the related methods from TimezoneService to obtain an instance.

    Hierarchy

    • GemAutoreleaseObject
      • TimezoneResult
    Index

    Properties

    _pointerId: number

    Accessors

    • get dstOffset(): number

      The offset daylight saving time (DST) offset.

      Returns 0 if no DST available.

      Returns number

    • get localTime(): Date

      Get the local time

      The local time is returned as a UTC Date object but contains the local time at the requested location

      Returns Date

    • get offset(): number

      Get the offset including DST

      Can be negative

      Returns number

    • get pointerId(): number
      Internal

      Returns number

    • get timezoneId(): string

      Get the ID of the timezone

      It is in the format "Continent/City_Name". Examples: Europe/Paris, America/New_York, Europe/Moscow

      Returns string

    • get utcOffset(): number

      Get the UTC offset without DST

      Can be negative

      Returns number

    Methods

    • Returns void

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void