epoch

actual fun epoch(offset: Duration, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDate

Creates a KalugaDate relative to January 1st 1970 00:00:00 GMT

Return

A KalugaDate relative to the current time

Parameters

offset

The Duration from the epoch time. Defaults to 0 milliseconds

timeZone

The KalugaTimeZone in which the Date is set. Defaults to KalugaTimeZone.current

locale

The KalugaLocale for which the Date is configured. Defaults to KalugaLocale.defaultLocale

expect fun epoch(offset: Duration = 0.milliseconds, timeZone: KalugaTimeZone = KalugaTimeZone.current(), locale: KalugaLocale = defaultLocale): KalugaDate

Creates a KalugaDate relative to January 1st 1970 00:00:00 GMT

Return

A KalugaDate relative to the current time

Parameters

offset

The Duration from the epoch time. Defaults to 0 milliseconds

timeZone

The KalugaTimeZone in which the Date is set. Defaults to KalugaTimeZone.current

locale

The KalugaLocale for which the Date is configured. Defaults to KalugaLocale.defaultLocale

actual fun epoch(offset: Duration, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDate

Creates a KalugaDate relative to January 1st 1970 00:00:00 GMT

Return

A KalugaDate relative to the current time

Parameters

offset

The Duration from the epoch time. Defaults to 0 milliseconds

timeZone

The KalugaTimeZone in which the Date is set. Defaults to KalugaTimeZone.current

locale

The KalugaLocale for which the Date is configured. Defaults to KalugaLocale.defaultLocale

actual fun epoch(offset: Duration, timeZone: KalugaTimeZone, locale: KalugaLocale): KalugaDate

Creates a KalugaDate relative to January 1st 1970 00:00:00 GMT

Return

A KalugaDate relative to the current time

Parameters

offset

The Duration from the epoch time. Defaults to 0 milliseconds

timeZone

The KalugaTimeZone in which the Date is set. Defaults to KalugaTimeZone.current

locale

The KalugaLocale for which the Date is configured. Defaults to KalugaLocale.defaultLocale