Bluestep JS Documentation
    Preparing search index...

    Class YearMonth

    A year-month in the ISO-8601 calendar system, such as 2007-12.

    See java.time.YearMonth for full documentation

    Index

    Constructors

    Methods

    • Adjusts the specified temporal object to have this year-month.

      Parameters

      Returns Temporal

    • Combines this year-month with a day-of-month to create a LocalDate.

      Parameters

      • dayOfMonth: number

      Returns LocalDate

    • Returns a LocalDate at the end of the month.

      Returns LocalDate

    • Compares this year-month to another year-month.

      Parameters

      Returns number

    • Formats this year-month using the specified formatter.

      Parameters

      Returns string

    • Gets the value of the specified field from this year-month as an int.

      Parameters

      Returns number

    • Gets the value of the specified field from this year-month as a long.

      Parameters

      Returns number

    • Gets the month-of-year field using the Month enum.

      Returns Month

    • Gets the month-of-year field from 1 to 12.

      Returns number

    • Gets the year field.

      Returns number

    • Checks if this year-month is after the specified year-month.

      Parameters

      Returns boolean

    • Checks if this year-month is before the specified year-month.

      Parameters

      Returns boolean

    • Checks if the year is a leap year, according to the ISO proleptic calendar system rules.

      Returns boolean

    • Checks if the specified field is supported.

      Parameters

      Returns boolean

    • Checks if the specified unit is supported.

      Parameters

      Returns boolean

    • Checks if the day-of-month is valid for this year-month.

      Parameters

      • dayOfMonth: number

      Returns boolean

    • Returns the length of the month, taking account of the year.

      Returns number

    • Returns the length of the year.

      Returns number

    • Returns a copy of this year-month with the specified amount subtracted.

      Parameters

      Returns YearMonth

    • Returns a copy of this year-month with the specified amount subtracted.

      Parameters

      Returns YearMonth

    • Returns a copy of this YearMonth with the specified number of months subtracted.

      Parameters

      • monthsToSubtract: number

      Returns YearMonth

    • Returns a copy of this YearMonth with the specified number of years subtracted.

      Parameters

      • yearsToSubtract: number

      Returns YearMonth

    • Returns a copy of this year-month with the specified amount added.

      Parameters

      Returns YearMonth

    • Returns a copy of this year-month with the specified amount added.

      Parameters

      Returns YearMonth

    • Returns a copy of this YearMonth with the specified number of months added.

      Parameters

      • monthsToAdd: number

      Returns YearMonth

    • Returns a copy of this YearMonth with the specified number of years added.

      Parameters

      • yearsToAdd: number

      Returns YearMonth

    • Queries this year-month using the specified query.

      Type Parameters

      • R

      Parameters

      Returns R

    • Calculates the amount of time until another year-month in terms of the specified unit.

      Parameters

      Returns number

    • Returns a copy of this YearMonth with the month-of-year altered.

      Parameters

      • month: number

      Returns YearMonth

    • Returns a copy of this YearMonth with the year altered.

      Parameters

      • year: number

      Returns YearMonth

    • Obtains the current date-time from the system clock in the default time-zone.

      Parameters

      • OptionalclockOrZoneId: ZoneId | Clock

        Obtains the current date-time from the specified clock or the system clock in the specified time-zone.

      Returns YearMonth

    • Obtains an instance of YearMonth from a year and month.

      Parameters

      • year: number
      • month: number

      Returns YearMonth

    • Obtains an instance of YearMonth from a year and month.

      Parameters

      Returns YearMonth

    • Obtains an instance of YearMonth from a text string such as 2007-12.

      Parameters

      Returns YearMonth