DefaultKalugaDate

Default implementation of KalugaDate

Default implementation of KalugaDate

Default implementation of KalugaDate

Default implementation of KalugaDate

Default implementation of KalugaDate

Default implementation of KalugaDate backed by the luxon JS library. Mirrors java.util.Calendar semantics:

  • Setters are lenient: in-range values map to luxon's set (preserves the rest of the date, correct around DST gaps where luxon normalises forward). Out-of-range values fall back to plus, so e.g. month += 22 rolls the year over.

  • Calendar arithmetic is timezone-aware: day += 1 uses plus({days: 1}) which preserves the local time-of-day across DST transitions.

Types

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Properties

Link copied to clipboard
actual open override val date: KalugaDateHolder

Reference to the underlying KalugaDateHolder

actual open override val date: KalugaDateHolder

Reference to the underlying KalugaDateHolder

expect open override val date: KalugaDateHolder

Reference to the underlying KalugaDateHolder

actual open override val date: KalugaDateHolder

Reference to the underlying KalugaDateHolder

actual open override val date: KalugaDateHolder

Reference to the underlying KalugaDateHolder

actual open override val date: KalugaDateHolder

Reference to the underlying KalugaDateHolder

Link copied to clipboard
actual open override var day: Int

The day of the current month

actual open override var day: Int

The day of the current month

expect open override var day: Int

The day of the current month

actual open override var day: Int

The day of the current month

actual open override var day: Int

The day of the current month

actual open override var day: Int

The day of the current month

Link copied to clipboard
actual open override var dayOfYear: Int

The day of the current year

actual open override var dayOfYear: Int

The day of the current year

expect open override var dayOfYear: Int

The day of the current year

actual open override var dayOfYear: Int

The day of the current year

actual open override var dayOfYear: Int

The day of the current year

actual open override var dayOfYear: Int

The day of the current year

Link copied to clipboard
actual open override val daysInMonth: Int

The number of days in the current month

actual open override val daysInMonth: Int

The number of days in the current month

expect open override val daysInMonth: Int

The number of days in the current month

actual open override val daysInMonth: Int

The number of days in the current month

actual open override val daysInMonth: Int

The number of days in the current month

actual open override val daysInMonth: Int

The number of days in the current month

Link copied to clipboard
actual open override var durationSinceEpoch: Duration

The Duration passed since epoch time (January 1st 1970 00:00:00:00 GMT)

actual open override var durationSinceEpoch: Duration

The Duration passed since epoch time (January 1st 1970 00:00:00:00 GMT)

expect open override var durationSinceEpoch: Duration

The Duration passed since epoch time (January 1st 1970 00:00:00:00 GMT)

actual open override var durationSinceEpoch: Duration

The Duration passed since epoch time (January 1st 1970 00:00:00:00 GMT)

actual open override var durationSinceEpoch: Duration

The Duration passed since epoch time (January 1st 1970 00:00:00:00 GMT)

actual open override var durationSinceEpoch: Duration

The Duration passed since epoch time (January 1st 1970 00:00:00:00 GMT)

Link copied to clipboard
actual open override var era: Int

The number of the era, e.g., AD or BC in the Julian calendar

actual open override var era: Int

The number of the era, e.g., AD or BC in the Julian calendar

expect open override var era: Int

The number of the era, e.g., AD or BC in the Julian calendar

actual open override var era: Int

The number of the era, e.g., AD or BC in the Julian calendar

actual open override var era: Int

The number of the era, e.g., AD or BC in the Julian calendar

actual open override var era: Int

The number of the era, e.g., AD or BC in the Julian calendar

Link copied to clipboard
actual open override var firstWeekDay: Int

The first day of the week. E.g. Sunday in the US, Monday in France. Starts at 1.

actual open override var firstWeekDay: Int

The first day of the week. E.g. Sunday in the US, Monday in France. Starts at 1.

expect open override var firstWeekDay: Int

The first day of the week. E.g. Sunday in the US, Monday in France. Starts at 1.

actual open override var firstWeekDay: Int

The first day of the week. E.g. Sunday in the US, Monday in France. Starts at 1.

actual open override var firstWeekDay: Int

The first day of the week. E.g. Sunday in the US, Monday in France. Starts at 1.

actual open override var firstWeekDay: Int

The first day of the week. E.g. Sunday in the US, Monday in France. Starts at 1.

Link copied to clipboard
actual open override var hour: Int

The hour of the current day

actual open override var hour: Int

The hour of the current day

expect open override var hour: Int

The hour of the current day

actual open override var hour: Int

The hour of the current day

actual open override var hour: Int

The hour of the current day

actual open override var hour: Int

The hour of the current day

Link copied to clipboard

True if this KalugaDate is last month

Link copied to clipboard

True if this KalugaDate is last year

Link copied to clipboard

True if this KalugaDate is next month

Link copied to clipboard

True if this KalugaDate is next year

Link copied to clipboard

True if this KalugaDate is this month

Link copied to clipboard

True if this KalugaDate is this year

Link copied to clipboard

True if this KalugaDate is today

Link copied to clipboard

True if this KalugaDate is tomorrow

Link copied to clipboard

True if this KalugaDate is yesterday

Link copied to clipboard
actual open override var millisecond: Int

The millisecond of the current second

actual open override var millisecond: Int

The millisecond of the current second

expect open override var millisecond: Int

The millisecond of the current second

actual open override var millisecond: Int

The millisecond of the current second

actual open override var millisecond: Int

The millisecond of the current second

actual open override var millisecond: Int

The millisecond of the current second

Link copied to clipboard

The number of milliseconds passed since epoch time (January 1st 1970 00:00:00:00 GMT)

The number of milliseconds passed since epoch time (January 1st 1970 00:00:00:00 GMT)

The number of milliseconds passed since epoch time (January 1st 1970 00:00:00:00 GMT)

The number of milliseconds passed since epoch time (January 1st 1970 00:00:00:00 GMT)

The number of milliseconds passed since epoch time (January 1st 1970 00:00:00:00 GMT)

The number of milliseconds passed since epoch time (January 1st 1970 00:00:00:00 GMT)

Link copied to clipboard
actual open override var minute: Int

The minute of the current hour

actual open override var minute: Int

The minute of the current hour

expect open override var minute: Int

The minute of the current hour

actual open override var minute: Int

The minute of the current hour

actual open override var minute: Int

The minute of the current hour

actual open override var minute: Int

The minute of the current hour

Link copied to clipboard
actual open override var month: Int

The month of the year. Starts at 1

actual open override var month: Int

The month of the year. Starts at 1

expect open override var month: Int

The month of the year. Starts at 1

actual open override var month: Int

The month of the year. Starts at 1

actual open override var month: Int

The month of the year. Starts at 1

actual open override var month: Int

The month of the year. Starts at 1

Link copied to clipboard
actual open override var second: Int

The second of the current minute

actual open override var second: Int

The second of the current minute

expect open override var second: Int

The second of the current minute

actual open override var second: Int

The second of the current minute

actual open override var second: Int

The second of the current minute

actual open override var second: Int

The second of the current minute

Link copied to clipboard
actual open override var timeZone: KalugaTimeZone

The KalugaTimeZone in which the Date is set

actual open override var timeZone: KalugaTimeZone

The KalugaTimeZone in which the Date is set

expect open override var timeZone: KalugaTimeZone

The KalugaTimeZone in which the Date is set

actual open override var timeZone: KalugaTimeZone

The KalugaTimeZone in which the Date is set

actual open override var timeZone: KalugaTimeZone

The KalugaTimeZone in which the Date is set

actual open override var timeZone: KalugaTimeZone

The KalugaTimeZone in which the Date is set

Link copied to clipboard
actual open override var weekDay: Int

The day of the week. Starts at 1

actual open override var weekDay: Int

The day of the week. Starts at 1

expect open override var weekDay: Int

The day of the week. Starts at 1

actual open override var weekDay: Int

The day of the week. Starts at 1

actual open override var weekDay: Int

The day of the week. Starts at 1

actual open override var weekDay: Int

The day of the week. Starts at 1

Link copied to clipboard
actual open override var weekOfMonth: Int

The week number within the current month

actual open override var weekOfMonth: Int

The week number within the current month

expect open override var weekOfMonth: Int

The week number within the current month

actual open override var weekOfMonth: Int

The week number within the current month

actual open override var weekOfMonth: Int

The week number within the current month

actual open override var weekOfMonth: Int

The week number within the current month

Link copied to clipboard
actual open override var weekOfYear: Int

The week number within the current year.

actual open override var weekOfYear: Int

The week number within the current year.

expect open override var weekOfYear: Int

The week number within the current year.

actual open override var weekOfYear: Int

The week number within the current year.

actual open override var weekOfYear: Int

The week number within the current year.

actual open override var weekOfYear: Int

The week number within the current year.

Link copied to clipboard
actual open override var year: Int

The year

actual open override var year: Int

The year

expect open override var year: Int

The year

actual open override var year: Int

The year

actual open override var year: Int

The year

actual open override var year: Int

The year

Functions

Link copied to clipboard
actual open operator override fun compareTo(other: KalugaDate): Int
actual open operator override fun compareTo(other: KalugaDate): Int
expect open operator override fun compareTo(other: KalugaDate): Int
actual open operator override fun compareTo(other: KalugaDate): Int
actual open operator override fun compareTo(other: KalugaDate): Int
actual open operator override fun compareTo(other: KalugaDate): Int
Link copied to clipboard
actual open override fun copy(): KalugaDate

Creates a copy of a KalugaDate

actual open override fun copy(): KalugaDate

Creates a copy of a KalugaDate

expect open override fun copy(): KalugaDate

Creates a copy of a KalugaDate

actual open override fun copy(): KalugaDate

Creates a copy of a KalugaDate

actual open override fun copy(): KalugaDate

Creates a copy of a KalugaDate

actual open override fun copy(): KalugaDate

Creates a copy of a KalugaDate

Link copied to clipboard
actual open operator override fun equals(other: Any?): Boolean

Returns whether this Date is in the same timeZone and has the same time based on durationSinceEpoch

actual open operator override fun equals(other: Any?): Boolean

Returns whether this Date is in the same timeZone and has the same time based on durationSinceEpoch

expect open operator override fun equals(other: Any?): Boolean

Returns whether this Date is in the same timeZone and has the same time based on durationSinceEpoch

actual open operator override fun equals(other: Any?): Boolean

Returns whether this Date is in the same timeZone and has the same time based on durationSinceEpoch

actual open operator override fun equals(other: Any?): Boolean

Returns whether this Date is in the same timeZone and has the same time based on durationSinceEpoch

actual open operator override fun equals(other: Any?): Boolean

Returns whether this Date is in the same timeZone and has the same time based on durationSinceEpoch

Link copied to clipboard
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
Link copied to clipboard

Checks whether a KalugaDate is in the same year as a given Date.

Link copied to clipboard

Checks whether a KalugaDate is on the same day as a given Date.

Link copied to clipboard

Checks whether a KalugaDate is on the same month as a given Date.

Link copied to clipboard
infix operator fun KalugaDate.minus(other: KalugaDate): Duration

Gets the Duration between two KalugaDate

infix operator fun KalugaDate.minus(duration: Duration): KalugaDate

Gets a KalugaDate that is duration before this date.

Link copied to clipboard
infix operator fun KalugaDate.plus(duration: Duration): KalugaDate

Gets a KalugaDate that is duration after this date.

Link copied to clipboard

Gets a KalugaDate equal to 23:59:59:999 on the same day as this Date

Link copied to clipboard

Gets a KalugaDate equal to midnight on the same day as this Date

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String