core / io.islandtime.format / DateTimeTextProvider / eraTextFor

eraTextFor

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) open fun eraTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?

Get the localized ISO era text.

Parameters

value - 0 for BCE or 1 for CE

locale - the locale

style - the style of the text

Exceptions

DateTimeException - if the value is not 0 or 1

Return
the localized era text or null if unavailable

(jvm) open fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?

Get the localized ISO era text.

Parameters

value - 0 for BCE or 1 for CE

locale - the locale

style - the style of the text

Exceptions

DateTimeException - if the value is not 0 or 1

Return
the localized era text or null if unavailable