//core/io.islandtime.measures/Years/Companion
Companion¶
common
object Companion
Properties¶
Name | Summary |
---|---|
MAX | common val MAX: Years The largest supported value. |
MIN | common val MIN: Years The smallest supported value. |
Functions¶
Name | Summary |
---|---|
between | common fun Years.Companion.between(start: Date, endExclusive: Date): Years Returns the number of whole years between two dates. common fun Years.Companion.between(start: DateTime, endExclusive: DateTime): Years Returns the number of whole years between two date-times, which are assumed to be in the same time zone. common fun Years.Companion.between(start: OffsetDateTime, endExclusive: OffsetDateTime): Years Returns the number of whole years between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time. common fun Years.Companion.between(start: Year, endExclusive: Year): Years Returns the number of years between two years. common fun Years.Companion.between(start: YearMonth, endExclusive: YearMonth): Years Returns the number of whole years between two year-months. common fun Years.Companion.between(start: ZonedDateTime, endExclusive: ZonedDateTime): Years Returns the number of whole years between date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time. |