Skip to content

//core/io.islandtime.format/PlatformDateTimeTextProvider/monthTextFor

monthTextFor

darwin

open override fun monthTextFor(value: Long, style: TextStyle, locale: <Error class: unknown class>): String?

Get the localized month text for a given ISO month number.

Return

the localized month text or null if unavailable

Parameters

darwin

value an ISO month number, from January (1) to December (12)
style the style of the text
locale the locale

Throws

DateTimeException if the value is not a valid month number

jvm

open override fun monthTextFor(value: Long, style: TextStyle, locale: Locale): String?

Get the localized month text for a given ISO month number.

Return

the localized month text or null if unavailable

Parameters

jvm

value an ISO month number, from January (1) to December (12)
style the style of the text
locale the locale

Throws

DateTimeException if the value is not a valid month number