Companion

actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard
fun createDateFormatter(dateStyle: <Error class: unknown class>?, timeStyle: <Error class: unknown class>?, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter
Link copied to clipboard

Creates a KalugaDateFormatter that only formats the date components of a KalugaDate

expect fun dateFormat(style: DateFormatStyle = DateFormatStyle.Medium, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that only formats the date components of a KalugaDate

Creates a KalugaDateFormatter that only formats the date components of a KalugaDate

Creates a KalugaDateFormatter that only formats the date components of a KalugaDate

Link copied to clipboard
fun KalugaDateFormatter.Companion.dateFormat(style: DateFormatStyle = DateFormatStyle.Medium, excludeYear: Boolean, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that only formats the date components of a KalugaDate

Link copied to clipboard
actual fun dateTimeFormat(dateStyle: DateFormatStyle, timeStyle: DateFormatStyle, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that formats both date and time components of a KalugaDate

expect fun dateTimeFormat(dateStyle: DateFormatStyle = DateFormatStyle.Medium, timeStyle: DateFormatStyle = DateFormatStyle.Medium, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that formats both date and time components of a KalugaDate

actual fun dateTimeFormat(dateStyle: DateFormatStyle, timeStyle: DateFormatStyle, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that formats both date and time components of a KalugaDate

actual fun dateTimeFormat(dateStyle: DateFormatStyle, timeStyle: DateFormatStyle, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that formats both date and time components of a KalugaDate

Link copied to clipboard
fun KalugaDateFormatter.Companion.dateTimeFormat(dateStyle: DateFormatStyle = DateFormatStyle.Medium, excludeYear: Boolean, timeStyle: DateFormatStyle = DateFormatStyle.Medium, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that formats both date and time components of a KalugaDate

Link copied to clipboard

Creates a fixed KalugaDateFormatter using a custom Date format pattern, localized by the KalugaLocale.enUsPosix. Use this to ensure that displaying time in 12 or 24 hour format is not overridden by the user.

Link copied to clipboard

Creates a KalugaDateFormatter that formats time according to the ISo 8601 format.

Link copied to clipboard
actual fun patternFormat(pattern: String, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX type. A convenience fixedPatternFormat method exists to default to this behaviour.

expect fun patternFormat(pattern: String, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX type. A convenience fixedPatternFormat method exists to default to this behaviour.

actual fun patternFormat(pattern: String, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX type. A convenience fixedPatternFormat method exists to default to this behaviour.

actual fun patternFormat(pattern: String, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX type. A convenience fixedPatternFormat method exists to default to this behaviour.

actual fun patternFormat(pattern: String, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDateFormatter

Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX type. A convenience fixedPatternFormat method exists to default to this behaviour.

Link copied to clipboard

Creates a KalugaDateFormatter that only formats the time components of a KalugaDate

expect fun timeFormat(style: DateFormatStyle = DateFormatStyle.Medium, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDateFormatter

Creates a KalugaDateFormatter that only formats the time components of a KalugaDate

Creates a KalugaDateFormatter that only formats the time components of a KalugaDate

Creates a KalugaDateFormatter that only formats the time components of a KalugaDate