MonthBased

A date-time unit equal to some number of months.

Since different months have different number of days, a MonthBased-unit cannot be expressed a multiple of some DayBased-unit.

Constructors

Link copied to clipboard
constructor(months: Int)

Properties

Link copied to clipboard
val months: Int

The length of this unit in months.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun times(scalar: Int): DateTimeUnit.MonthBased

Produces a date-time unit that is a multiple of this unit times the specified integer scalar value.

Link copied to clipboard
open override fun toString(): String