A month-day in the ISO-8601 calendar system, such as --12-03.

See java.time.MonthDay for full documentation

Hierarchy

  • MonthDay

Constructors

Methods

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

    Parameters

    Returns Temporal

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

    Parameters

    • year: number

    Returns LocalDate

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

    Parameters

    Returns number

  • Formats this month-day using the specified formatter.

    Parameters

    Returns string

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

    Parameters

    Returns number

  • Gets the day-of-month field. The first day of the month is 1.

    Returns number

  • Gets the value of the specified field from this month-day 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

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

    Parameters

    Returns boolean

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

    Parameters

    Returns boolean

  • Checks if the specified field is supported.

    Parameters

    Returns boolean

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

    Parameters

    • year: number

    Returns boolean

  • Queries this month-day using the specified query.

    Type Parameters

    • R

    Parameters

    Returns R

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

    Parameters

    Returns MonthDay

  • Returns a copy of this MonthDay with the day-of-month altered.

    Parameters

    • dayOfMonth: number

    Returns MonthDay

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

    Parameters

    • month: number

    Returns MonthDay

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

    Parameters

    • Optional clockOrZoneId: Clock | ZoneId

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

    Returns MonthDay

  • Obtains an instance of MonthDay.

    Parameters

    • month: number
    • dayOfMonth: number

    Returns MonthDay

  • Obtains an instance of MonthDay.

    Parameters

    • month: Month
    • dayOfMonth: number

    Returns MonthDay

  • Obtains an instance of MonthDay from a text string such as --12-03.

    Parameters

    Returns MonthDay

Generated using TypeDoc