Companion
object Companion
Content copied to clipboard
Properties
Extensions
between
Link copied to clipboard
Returns the Period between two dates.
fun Period.Companion.between(start: DateTime, endExclusive: DateTime): Period
Content copied to clipboard
Returns the Period between two date-times, which are assumed to be in the same time zone.
fun Period.Companion.between(start: OffsetDateTime, endExclusive: OffsetDateTime): Period
Content copied to clipboard
Returns the Period between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
fun Period.Companion.between(start: ZonedDateTime, endExclusive: ZonedDateTime): Period
Content copied to clipboard
Returns the Period between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.