PlatformDateTimeTextProvider

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

object PlatformDateTimeTextProvider : DateTimeTextProvider
object PlatformDateTimeTextProvider : DateTimeTextProvider
object PlatformDateTimeTextProvider : DateTimeTextProvider

Functions

amPmTextFor
Link copied to clipboard

Get the localized AM/PM text.

open override fun amPmTextFor(value: Long, locale: Locale): String?
open override fun amPmTextFor(value: Long, locale: <ERROR CLASS>): String?
open override fun amPmTextFor(value: Long, locale: Locale): String?
dayOfWeekTextFor
Link copied to clipboard

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

open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: Locale): String?
open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: Locale): String?
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
eraTextFor
Link copied to clipboard

Get the localized ISO era text.

open override fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?
open override fun eraTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
open override fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
monthTextFor
Link copied to clipboard

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

open override fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?
open override fun monthTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
open override fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?
parsableTextFor
Link copied to clipboard

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.

Any text with conflicting values will be excluded. For example, the English narrow month name "M" could be March or May, so any attempt to parse it would be ambiguous.

open override fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: Locale): List<Pair<String, Long>>
open override fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: <ERROR CLASS>): List<<ERROR CLASS><String, Long>>
open override fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: Locale): List<Pair<String, Long>>

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.

Any text with conflicting values will be excluded. For example, the English narrow month name "M" could be March or May, so any attempt to parse it would be ambiguous.

override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: Locale): List<Pair<String, Long>>
open override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: <ERROR CLASS>): List<<ERROR CLASS><String, Long>>
open override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: Locale): List<Pair<String, Long>>
textFor
Link copied to clipboard

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

open override fun textFor(field: DateTimeField, value: Long, style: TextStyle, locale: Locale): String?
open override fun textFor(field: DateTimeField, value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
open override fun textFor(field: DateTimeField, value: Long, style: TextStyle, locale: Locale): String?
toString
Link copied to clipboard
common
open override fun toString(): String