Zoned

data class Zoned<out T>(val value: T, val timeZone: TimeZone)(source)

Hodler for a generic value T that is associated with a TimeZone

Constructors

Link copied to clipboard
constructor(value: T, timeZone: TimeZone)

Properties

Link copied to clipboard
Link copied to clipboard
val value: T

Functions

Link copied to clipboard
fun Zoned<Instant>.localize(options: ZonedInstantOptions, locale: PlatformLocale = getDefaultLocale()): String

Localizes this Instant at this TimeZone with the given options in the given locale.

Link copied to clipboard
operator fun Zoned<Instant>.minus(duration: Duration): Zoned<Instant>
Link copied to clipboard
operator fun Zoned<Instant>.plus(duration: Duration): Zoned<Instant>
Link copied to clipboard

Returns a civil datetime value that this instant Zoned.value has in the specified Zoned.timeZone.