Companion

object Companion

Properties

MAX
Link copied to clipboard
common
val MAX: Days

The largest supported value.

MIN
Link copied to clipboard
common
val MIN: Days

The smallest supported value.

Extensions

between
Link copied to clipboard
common
fun Days.Companion.between(start: Date, endExclusive: Date): Days

Returns the number of days between two dates.

fun Days.Companion.between(start: DateTime, endExclusive: DateTime): Days

Returns the number whole days between two date-times, which are assumed to be in the same time zone.

fun Days.Companion.between(start: OffsetDateTime, endExclusive: OffsetDateTime): Days

Returns the number whole days between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.

fun Days.Companion.between(start: ZonedDateTime, endExclusive: ZonedDateTime): Days

Returns the number of whole days between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.