Companion
object Companion
Content copied to clipboard
Properties
Extensions
between
Link copied to clipboard
Returns the number of days between two dates.
fun Days.Companion.between(start: DateTime, endExclusive: DateTime): Days
Content copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard
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.