Scoop API

scoop:scoop.std:0.1.0

YearMonth

class YearMonth

source · line 8
public
public class YearMonth public constructor(
    /**
     * The proleptic Gregorian year, including year zero.
     */
    public val year: Int,
    /**
     * The one-based month number in 1..12.
     */
    public val monthNumber: Int) : Equals<YearMonth>, Compare<YearMonth>, Hash, ToString

An immutable Gregorian year and month in the same supported year range as LocalDate.

property lengthOfMonth

source · line 29
public
public val lengthOfMonth: Int

get: public read-only

The number of days in this month, including leap-year rules.

property year

source · line 12
public
public val year: Int

get: public read-only

The proleptic Gregorian year, including year zero.

function hash

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

Computes a hash consistent with component equality.

property monthNumber

source · line 16
public
public val monthNumber: Int

get: public read-only

The one-based month number in 1..12.