Home > @magiclane/maps-sdk > TimezoneResult

TimezoneResult class

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.

Core

Signature:

export declare class TimezoneResult extends GemAutoreleaseObject 

Extends: GemAutoreleaseObject

Properties

Property

Modifiers

Type

Description

_pointerId

protected

number | bigint

dstOffset

readonly

number

The offset daylight saving time (DST) offset.

Returns 0 if no DST available.

localTime

readonly

Date

Get the local time

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

offset

readonly

number

Get the offset including DST

Can be negative

status

readonly

TimeZoneStatus

Get the status of the response

timezoneId

readonly

string

Get the ID of the timezone

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

utcOffset

readonly

number

Get the UTC offset without DST

Can be negative

Methods

Method

Modifiers

Description

dispose()