BaseTimeZone

abstract class BaseTimeZone

A TimeZone represents a time zone. Accounts for Daylight Savings

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The Duration this timezone differs from itself during Daylight Savings

Link copied to clipboard

The number of milliseconds this timezone differs from itself during Daylight Savings

Link copied to clipboard
abstract val identifier: String

The identifier of the KalugaTimeZone

Link copied to clipboard
abstract val offsetFromGMT: Duration

The Duration this timezone differs from GMT when daylight savings time is not active

Link copied to clipboard

The number of milliseconds this timezone differs from GMT when daylight savings time is not active

Functions

Link copied to clipboard
abstract fun copy(): BaseTimeZone

Creates a copy of this KalugaTimeZone

Link copied to clipboard
abstract fun displayName(style: TimeZoneNameStyle, withDaylightSavings: Boolean = usesDaylightSavingsTime(), locale: KalugaLocale = defaultLocale): String

Gets the display name for this KalugaTimeZone formatted for a given KalugaLocale

Link copied to clipboard
abstract fun offsetFromGMTAtDate(date: KalugaDate = now()): Duration

The Duration this KalugaTimeZone differs from GMT at a given KalugaDate

Link copied to clipboard

The number of milliseconds this KalugaTimeZone differs from GMT at a given KalugaDate

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun usesDaylightSavingsTime(date: KalugaDate = now()): Boolean

Returns true if this KalugaTimeZone is observing daylight savings at a given KalugaDate