MonthBased

class MonthBased(val months: Int) : DateTimeUnit.DateBased

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
fun MonthBased(months: Int)

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

Properties

Link copied to clipboard
val months: Int

The length of this unit in months.