Companion

object Companion

Properties

MAX
Link copied to clipboard
common
val MAX: Months

The largest supported value.

MIN
Link copied to clipboard
common
val MIN: Months

The smallest supported value.

Extensions

between
Link copied to clipboard
common
fun Months.Companion.between(start: YearMonth, endExclusive: YearMonth): Months

Returns the number of months between two year-months.

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

Returns the number of whole months between two dates.

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.

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.

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.