All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jdk7Main.common.Locale.jvm.kt Maven / Gradle / Ivy

package io.fluidsonic.stdlib

import java.util.Locale as PlatformLocale


actual class Locale(
	private val platform: PlatformLocale
) {

	fun toPlatform() =
		platform


	actual companion object {

		actual val englishInUnitedStates = PlatformLocale.US.toCommon()
	}
}


fun PlatformLocale.toCommon() =
	Locale(this)


val PlatformLocale.usesTwelveHourClock
	get() = PlatformDateTimeFormatterBuilder.getLocalizedDateTimePattern(
		null,
		PlatformFormatStyle.MEDIUM,
		PlatformIsoChronology.INSTANCE,
		this
	).contains('a')




© 2015 - 2024 Weber Informatics LLC | Privacy Policy