Package com.soywiz.klock.wrapped

Types

Link copied to clipboard
data class WDate(val value: Date) : Comparable<WDate> , Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
data class WDateTime(val value: DateTime) : Comparable<WDateTime> , Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
typealias WDateTimeSpan = DateTimeSpan
Link copied to clipboard
typealias WDateTimeTz = DateTimeTz
Link copied to clipboard
typealias WDayOfWeek = DayOfWeek
Link copied to clipboard
typealias WMonth = Month
Link copied to clipboard
data class WMonthSpan(val value: MonthSpan) : Comparable<WMonthSpan> , Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
data class WTime(val value: Time) : Comparable<WTime> , Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
data class WTimeSpan(val value: TimeSpan) : Comparable<WTimeSpan> , Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
data class WTimezoneOffset(val value: TimezoneOffset) : Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
data class WYear(val value: Year) : Comparable<WYear> , Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Link copied to clipboard
data class WYearMonth(val value: YearMonth) : Serializable

Wrapped Version, that is not inline. You can use value to get the wrapped value class.

Functions

Link copied to clipboard
fun WDateTime.clamp(min: WDateTime, max: WDateTime): WDateTime
fun WTimeSpan.clamp(min: WTimeSpan, max: WTimeSpan): WTimeSpan
Link copied to clipboard
fun max(a: WDateTime, b: WDateTime): WDateTime
fun max(a: WTimeSpan, b: WTimeSpan): WTimeSpan
Link copied to clipboard
fun min(a: WDateTime, b: WDateTime): WDateTime
fun min(a: WTimeSpan, b: WTimeSpan): WTimeSpan
Link copied to clipboard
operator fun WTime.plus(span: WTimeSpan): WTime
Link copied to clipboard
fun WDateTimeSpan(value: DateTimeSpan): DateTimeSpan
Link copied to clipboard
fun WDateTimeTz(value: DateTimeTz): DateTimeTz
Link copied to clipboard
fun WDayOfWeek(value: DayOfWeek): DayOfWeek
Link copied to clipboard
fun WYear.withMonth(month: WMonth): WYearMonth

Creates a WYearMonth representing this year and this month.

Link copied to clipboard
fun WMonth.withYear(year: WYear): WYearMonth

Creates a WYearMonth representing this year and this month.

Link copied to clipboard
fun WMonth(value: Month): Month

Properties

Link copied to clipboard
val WTimeSpan.offset: WTimezoneOffset
Link copied to clipboard
val WDateTimeSpan.value: DateTimeSpan
val WDateTimeTz.value: DateTimeTz
val WDayOfWeek.value: DayOfWeek
val WMonth.value: Month
Link copied to clipboard
val Date.wrapped: WDate
val DateTime.wrapped: WDateTime
val DateTimeSpan.wrapped: DateTimeSpan
val DateTimeTz.wrapped: DateTimeTz
val DayOfWeek.wrapped: DayOfWeek
val Month.wrapped: Month
val MonthSpan.wrapped: WMonthSpan
val Time.wrapped: WTime
val TimeSpan.wrapped: WTimeSpan
val TimezoneOffset.wrapped: WTimezoneOffset
val Year.wrapped: WYear
val YearMonth.wrapped: WYearMonth