Home Reference Source Repository
import {ZoneRulesProvider} from 'js-joda/src/zone/ZoneRulesProvider.js'
public class | source

ZoneRulesProvider

Static Method Summary

Static Public Methods
public static

Gets the set of available zone IDs.

public static

Gets the rules for the zone ID.

Static Public Methods

public static getAvailableZoneIds(): string[] source

Gets the set of available zone IDs.

These zone IDs are loaded and available for use by ZoneId.

Return:

string[]

a modifiable copy of the set of zone IDs, not null

public static getRules(zoneId: string): ZoneRules source

Gets the rules for the zone ID.

This returns the latest available rules for the zone ID.

This method relies on time-zone data provider files that are configured.

Params:

NameTypeAttributeDescription
zoneId string

Return:

ZoneRules