Companion
object Companion
Content copied to clipboard
Properties
Extensions
between
Link copied to clipboard
Returns the number of whole weeks between two dates.
fun Weeks.Companion.between(start: DateTime, endExclusive: DateTime): Weeks
Content copied to clipboard
Returns the number whole weeks between two date-times, which are assumed to be in the same time zone.
fun Weeks.Companion.between(start: OffsetDateTime, endExclusive: OffsetDateTime): Weeks
Content copied to clipboard
Returns the number whole weeks between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
fun Weeks.Companion.between(start: ZonedDateTime, endExclusive: ZonedDateTime): Weeks
Content copied to clipboard
Returns the number of whole weeks between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.