struct DatePeriod
source · line 7public
public struct DatePeriod(val years: Int = 0, val months: Int = 0, val days: Long = 0L) : Equals<DatePeriod>, Hash
- Supertype
Equals<DatePeriod> - Supertype
Hash
Calendar years, months, and days. Components are retained separately; applying a period combines years/months before days and may clamp an end-of-month date.
field years
source · line 7public
val years: Int = 0
function equals
source · line 11public
public override operator fun equals(other: DatePeriod): Boolean
- Overrides
equals
Compares the stored value components for equality.
parameter other
source · line 11public
other: DatePeriod
field months
source · line 7public
val months: Int = 0
function hash
source · line 15public
public override fun hash(): Long
- Overrides
hash
Computes a hash consistent with component equality.
field days
source · line 7public
val days: Long = 0L
constructor constructor
source · line 7public
constructor(val years: Int = 0, val months: Int = 0, val days: Long = 0L)
parameter months
source · line 7public
val months: Int = 0
parameter days
source · line 7public
val days: Long = 0L
parameter years
source · line 7public
val years: Int = 0