Skip to content

//core/io.islandtime.format/PlatformDateTimeTextProvider

PlatformDateTimeTextProvider

common

expect object PlatformDateTimeTextProvider : DateTimeTextProvider

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

darwin jvm

actual object PlatformDateTimeTextProvider : DateTimeTextProvider

Functions

Name Summary
amPmTextFor

common darwin jvm


common

open fun amPmTextFor(value: Long, locale: Locale): String?

darwin

open override fun amPmTextFor(value: Long, locale: <Error class: unknown class>): String?

jvm

open override fun amPmTextFor(value: Long, locale: Locale): String?

Get the localized AM/PM text.
dayOfWeekTextFor

common darwin jvm


common

open fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: Locale): String?

darwin

open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: <Error class: unknown class>): String?

jvm

open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: Locale): String?

Get the localized day of the week text for a given ISO day of week number.
eraTextFor

common darwin jvm


common

open fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?

darwin

open override fun eraTextFor(value: Long, style: TextStyle, locale: <Error class: unknown class>): String?

jvm

open override fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?

Get the localized ISO era text.
monthTextFor

common darwin jvm


common

open fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?

darwin

open override fun monthTextFor(value: Long, style: TextStyle, locale: <Error class: unknown class>): String?

jvm

open override fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?

Get the localized month text for a given ISO month number.
parsableTextFor

darwin common jvm


darwin

open fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: <Error class: unknown class>): ParsableTextList

common

open fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: Locale): ParsableTextList

jvm

open fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: Locale): ParsableTextList

Get a list of all localized text in a particular style along with the values associated that text. The list will be sorted in descending order by the length of text, making it suitable for parsing.

common darwin jvm


common

abstract fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: Locale): ParsableTextList

darwin

open override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: <Error class: unknown class>): ParsableTextList

jvm

open override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: Locale): ParsableTextList

Get a list of all localized text in a set of styles along with the values associated that text. The list will be sorted in descending order by the length of text, making it suitable for parsing.
textFor

darwin common jvm


darwin

open fun textFor(field: DateTimeField, value: Long, style: TextStyle, locale: <Error class: unknown class>): String?

common

open fun textFor(field: DateTimeField, value: Long, style: TextStyle, locale: Locale): String?

jvm

open fun textFor(field: DateTimeField, value: Long, style: TextStyle, locale: Locale): String?

Get localized text for the specified field, value, style, and locale.