Skip to content

//core/io.islandtime.measures/Decades/Companion

Companion

common

object Companion

Properties

Name Summary
MAX

common


val MAX: Decades

The largest supported value.
MIN

common


val MIN: Decades

The smallest supported value.

Functions

Name Summary
between

common


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

Returns the number of whole decades between two dates.

common


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

Returns the number of whole decades between two date-times, which are assumed to be in the same time zone.

common


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

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

common


fun Decades.Companion.between(start: Year, endExclusive: Year): Decades

Returns the number of whole decades between two years.

common


fun Decades.Companion.between(start: YearMonth, endExclusive: YearMonth): Decades

Returns the number of whole decades between two year-months.

common


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

Returns the number of whole decades between two date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.