Temporal.PlainYearMonth.prototype.inLeapYear

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Thuộc tính truy cập inLeapYear của các thực thể Temporal.PlainYearMonth trả về một boolean cho biết year-month này có thuộc năm nhuận hay không. Năm nhuận là năm có nhiều ngày hơn (do ngày nhuận hoặc tháng nhuận) so với năm thường. Nó phụ thuộc vào lịch.

Set accessor của inLeapYearundefined. Bạn không thể thay đổi thuộc tính này trực tiếp.

Để biết thông tin chung và thêm ví dụ, xem Temporal.PlainDate.prototype.inLeapYear.