Date Time Text Provider
interface DateTimeTextProvider
Content copied to clipboard
An abstraction that allows localized date-time text to be supplied from different data sources.
Types
Companion
Link copied to clipboard
Functions
am Pm Text For
Link 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
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
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
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: 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
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.