Temporal.PlainDateTime.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 accessor inLeapYear của các instance Temporal.PlainDateTime trả về một giá trị boolean cho biết ngày này có trong năm nhuận 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.