textFor

open 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

field

the field to get text for

value

the value of the field

style

the style of the text

locale

the locale

Throws

if the value if out of range for the specified field