Skip to content

//core/io.islandtime.format

Package-level declarations

common darwin jvm

Formatting of dates, times, durations, and intervals into textual representations.

Types

Name Summary
DateTimeTextProvider

common


interface DateTimeTextProvider

An abstraction that allows localized date-time text to be supplied from different data sources.
NumberStyle

common


data class NumberStyle(val zeroDigit: Char, val plusSign: List<Char>, val minusSign: List<Char>, val decimalSeparator: List<Char>)

The set of characters that should be used when parsing or formatting numbers.
ParsableTextList

common


typealias ParsableTextList = List<Pair<String, Long>>
PlatformDateTimeTextProvider

common


expect object PlatformDateTimeTextProvider : DateTimeTextProvider

The default provider of localized date-time text for the current platform.

darwin jvm


darwin jvm

actual object PlatformDateTimeTextProvider : DateTimeTextProvider
PlatformTimeZoneTextProvider

common


expect object PlatformTimeZoneTextProvider : TimeZoneTextProvider

The default provider of localized time zone text for the current platform.

darwin jvm


darwin jvm

actual object PlatformTimeZoneTextProvider : TimeZoneTextProvider
TextStyle

common


enum TextStyle : Enum<TextStyle>

A style of text. The meaning may vary depending on the context. Standalone styles should be used when displaying text by itself since some languages have different names in the context of a date and time.
TimeZoneTextProvider

common


interface TimeZoneTextProvider

An abstraction that allows localized time zone names to be supplied from different data sources.
TimeZoneTextStyle

common


enum TimeZoneTextStyle : Enum<TimeZoneTextStyle>

A time zone text style.

Properties

Name Summary
numberStyle

common


expect val Locale.numberStyle: NumberStyle

The NumberStyle associated with this locale.