Package io.islandtime.format

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

Types

DateTimeTextProvider
Link copied to clipboard
common
interface DateTimeTextProvider

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

NumberStyle
Link copied to clipboard
common
data class NumberStyle(zeroDigit: Char, plusSign: List<Char>, minusSign: List<Char>, decimalSeparator: List<Char>)

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

ParsableTextList
Link copied to clipboard
common
typealias ParsableTextList = List<Pair<String, Long>>
PlatformDateTimeTextProvider
Link copied to clipboard
common
object PlatformDateTimeTextProvider : DateTimeTextProvider

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

object PlatformDateTimeTextProvider : DateTimeTextProvider
object PlatformDateTimeTextProvider : DateTimeTextProvider
PlatformTimeZoneTextProvider
Link copied to clipboard
common
object PlatformTimeZoneTextProvider : TimeZoneTextProvider

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

object PlatformTimeZoneTextProvider : TimeZoneTextProvider
object PlatformTimeZoneTextProvider : TimeZoneTextProvider
TextStyle
Link copied to clipboard
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
Link copied to clipboard
common
interface TimeZoneTextProvider

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

TimeZoneTextStyle
Link copied to clipboard
common
enum TimeZoneTextStyle : Enum<TimeZoneTextStyle>

A time zone text style.

Properties

numberStyle
Link copied to clipboard
common
val Locale.numberStyle: NumberStyle

The NumberStyle associated with this locale.