eraTextFor

darwin
open override fun eraTextFor(value: Long, style: TextStyle, locale: <ERROR CLASS>): String?

Get the localized ISO era text.

Return

the localized era text or null if unavailable

Parameters

value

0 for BCE or 1 for CE

locale

the locale

style

the style of the text

Throws

io.islandtime.DateTimeException

if the value is not 0 or 1

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

value

0 for BCE or 1 for CE

locale

the locale

style

the style of the text

Throws

io.islandtime.DateTimeException

if the value is not 0 or 1