Platform Date Time Text Provider
The default provider of localized date-time text for the current platform.
Functions
am Pm Text For
Link copied to clipboard
open override fun amPmTextFor(value: Long, locale: <ERROR CLASS>): String?
Content copied to clipboard
Get the localized AM/PM text.
day Of Week Text For
Link copied to clipboard
open fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: Locale): String?
Content copied to clipboard
open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
Content copied to clipboard
open override fun dayOfWeekTextFor(value: Long, style: TextStyle, locale: Locale): String?
Content copied to clipboard
Get the localized day of the week text for a given ISO day of week number.
era Text For
Link copied to clipboard
open fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?
Content copied to clipboard
open override fun eraTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
Content copied to clipboard
open override fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?
Content copied to clipboard
Get the localized ISO era text.
month Text For
Link copied to clipboard
open fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?
Content copied to clipboard
open override fun monthTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?
Content copied to clipboard
open override fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?
Content copied to clipboard
Get the localized month text for a given ISO month number.
parsable Text For
Link copied to clipboard
open fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: <ERROR CLASS>): ParsableTextList
Content copied to clipboard
open fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: Locale): ParsableTextList
Content copied to clipboard
open fun parsableTextFor(field: DateTimeField, style: TextStyle, locale: Locale): ParsableTextList
Content 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.
abstract fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: Locale): ParsableTextList
Content copied to clipboard
open override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: <ERROR CLASS>): ParsableTextList
Content copied to clipboard
open override fun parsableTextFor(field: DateTimeField, styles: Set<TextStyle>, locale: Locale): ParsableTextList
Content copied to clipboard
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.
text For
Link copied to clipboard
Get localized text for the specified field, value, style, and locale.