Skip to content

//core/io.islandtime.measures/Period/Companion

Companion

common

object Companion

Properties

Name Summary
ZERO

common


val ZERO: Period

A Period of zero length.

Functions

Name Summary
between

common


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

Returns the Period between two dates.

common


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

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

common


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

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

common


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

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