Skip to content

//core/io.islandtime.measures/Duration/Companion

Companion

common

object Companion

Properties

Name Summary
MAX

common


val MAX: Duration

The maximum supported Duration.
MIN

common


val MIN: Duration

The minimum supported Duration.
ZERO

common


val ZERO: Duration

A Duration of zero length.

Functions

Name Summary
between

common


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

Returns the Duration between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.

common


fun Duration.Companion.between(start: TimePoint<*>, endExclusive: TimePoint<*>): Duration

Returns the Duration between two time points.