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