//core/io.islandtime.format/PlatformDateTimeTextProvider/eraTextFor
eraTextFor¶
darwin
open override fun eraTextFor(value: Long, style: TextStyle, locale: <Error class: unknown class>): String?
Get the localized ISO era text.
Return¶
the localized era text or null
if unavailable
Parameters¶
darwin
value | 0 for BCE or 1 for CE |
locale | the locale |
style | the style of the text |
Throws¶
DateTimeException | if the value is not 0 or 1 |
jvm
open override fun eraTextFor(value: Long, style: TextStyle, locale: Locale): String?
Get the localized ISO era text.
Return¶
the localized era text or null
if unavailable
Parameters¶
jvm
value | 0 for BCE or 1 for CE |
locale | the locale |
style | the style of the text |
Throws¶
DateTimeException | if the value is not 0 or 1 |