AndroidCompatTimeZoneRegistry

class AndroidCompatTimeZoneRegistry(base: TimeZoneRegistry) : TimeZoneRegistry

Wrapper around default TimeZoneRegistry that uses the Android name if a time zone has a different name in ical4j and Android.

This time zone registry is set as default registry for ical4android projects in resources/ical4j.properties.

For instance, if a time zone is known as "Europe/Kyiv" (with alias "Europe/Kiev") in ical4j and only "Europe/Kiev" in Android, this registry behaves like the default TimeZoneRegistryImpl, but the returned time zone for getTimeZone("Europe/Kiev") has an ID of "Europe/Kiev" and not "Europe/Kyiv".

Constructors

Link copied to clipboard
constructor(base: TimeZoneRegistry)

Types

Link copied to clipboard
class Factory : TimeZoneRegistryFactory

Functions

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun getTimeZone(id: String): TimeZone?

Gets the time zone for a given ID.

Link copied to clipboard
open override fun register(p0: TimeZone)
open override fun register(p0: TimeZone, p1: Boolean)