Home > @magiclane/maps-sdk > TimezoneService > getTimezoneInfoTimezoneIdSync

TimezoneService.getTimezoneInfoTimezoneIdSync() method

Synchronously gets timezone info based on a timezone ID and a timestamp

**Parameters**

* **IN** *timezoneId* The IANA timezone identifier (e.g., "America/New_York") for which the timezone result is requested * **IN** *time* The time for which offsets are calculated (UTC)

**Returns**

* A TimezoneResult if the operation was successful, null otherwise

**Throws**

* An exception if it fails.

Signature:

static getTimezoneInfoTimezoneIdSync(params: {
        timezoneId: string;
        time: Date;
    }): TimezoneResult | null;

Parameters

Parameter

Type

Description

params

{ timezoneId: string; time: Date; }

params properties:

  • timezoneId: string
  • time: Date

Returns:

TimezoneResult | null