Skip to content

//core/io.islandtime.format/DateTimeTextProvider/Companion/textFor

textFor

common

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

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

Return

the localized text or null if unavailable

Parameters

common

field the field to get text for
value the value of the field
style the style of the text
locale the locale

Throws

DateTimeException if the value is out of range for the specified field