Temporal.PlainYearMonth.prototype.daysInYear
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die daysInYear Zugriffs-Eigenschaft von Instanzen des Temporal.PlainYearMonth gibt eine positive Ganzzahl zurück, die die Anzahl der Tage im Jahr dieses Datums darstellt. Es ist kalenderabhängig (calendar).
Der Set-Zugriff von daysInYear ist undefined. Sie können diese Eigenschaft nicht direkt ändern.
Für allgemeine Informationen und weitere Beispiele, siehe Temporal.PlainDate.prototype.daysInYear.
Beispiele
>Verwendung von daysInYear
js
const ym = Temporal.PlainYearMonth.from("2021-07");
console.log(ym.daysInYear); // 365
Spezifikationen
| Specification |
|---|
| Temporal> # sec-get-temporal.plainyearmonth.prototype.daysinyear> |