Companion

object Companion

Properties

ZERO
Link copied to clipboard
common
val ZERO: Period

A Period of zero length.

Extensions

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

Returns the Period between two dates.

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.

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.

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.