Skip to content

//core/io.islandtime.format/PlatformDateTimeTextProvider/amPmTextFor

amPmTextFor

darwin

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

Get the localized AM/PM text.

Return

the localized AM/PM text or null if unavailable

Parameters

darwin

value 0 for AM or 1 for PM
locale the locale

Throws

DateTimeException if the value is not 0 or 1

jvm

open override fun amPmTextFor(value: Long, locale: Locale): String?

Get the localized AM/PM text.

Return

the localized AM/PM text or null if unavailable

Parameters

jvm

value 0 for AM or 1 for PM
locale the locale

Throws

DateTimeException if the value is not 0 or 1