Scoop API

scoop:scoop.std:0.1.0

DatePeriod

struct DatePeriod

source · line 7
public
public struct DatePeriod(val years: Int = 0, val months: Int = 0, val days: Long = 0L) : Equals<DatePeriod>, 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.

function hash

source · line 15
public
public override fun hash(): Long

Computes a hash consistent with component equality.