Skip to content

//core/io.islandtime.measures/Days/Companion

Companion

common

object Companion

Properties

Name Summary
MAX

common


val MAX: Days

The largest supported value.
MIN

common


val MIN: Days

The smallest supported value.

Functions

Name Summary
between

common


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

Returns the number of days between two dates.

common


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.

common


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.

common


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.