GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for Temporal.PlainDate.prototype.year.

Developer library 6

Temporal

re date/time (which are all prefixed with "Plain"): - Date (year, month, day) + time (hour, minute, second, millisecond, microsecond, nanosecond): Temporal.PlainDateTime (Note: `ZonedDateTime` is equivalent to `PlainDateTime` plus a time zone) - Date (year, month, day): Temporal.PlainDate - Year, month: Temporal.PlainYearMonth - Month, day: Temporal.PlainMonthDay - Time (hour, minute,

Temporal.PlainMonthDay

The year is used to disambiguate the month-day in non-ISO calendar systems. ## Description A `PlainMonthDay` is essentially the month-day part of a Temporal.PlainDate object, without the year. Because the meaning of a month-day can change from year to year (for example, whether it exists, or what the month-day of the next day is), this object doesn't provide much functionality on its own, such as comparison, addit

Temporal.PlainMonthDay.prototype.toPlainDate()

The **`toPlainDate()`** method of Temporal.PlainMonthDay instances returns a new Temporal.PlainDate object representing this month-day and a supplied year in the same calendar system. ## Syntax ```js-nolint toPlainDate(yearInfo) ``` ### Parameters - `yearInfo` - : An object representing the year component of the resulting `PlainDate`, containing the following properties (in the order they are retrieved and vali

Temporal.PlainMonthDay.prototype.calendarId

vious way to create a new `Temporal.PlainMonthDay` object with a different calendar that represents the same month-day, so you need to convert it to a Temporal.PlainDate object first using toPlainDate(), change the calendar, and then convert it back. ## Examples ### Using calendarId ```js const md = Temporal.PlainMonthDay.from("07-01"); console.log(md.calendarId); // "iso8601"; default const md2 = Temporal.PlainM

Temporal.PlainMonthDay.prototype.valueOf()

.PlainMonthDay.from("01-01"); const md2 = Temporal.PlainMonthDay.from("07-01"); md1 > md2; // TypeError: can't convert PlainMonthDay to primitive type Temporal.PlainDate.compare( md1.toPlainDate({ year: 2021 }), md2.toPlainDate({ year: 2021 }), ); // -1 md2 - md1; // TypeError: can't convert PlainMonthDay to primitive type md2 .toPlainDate({ year: 2021 }) .since(md1.toPlainDate({ year: 2021 })) .toString()

Temporal.PlainMonthDay.from()

egardless of the `overflow` option. - `era` and `eraYear` - : A string and an integer that can be used instead of `year`. See era and eraYear of `PlainDate`. Are only used if the calendar system has eras. `era` and `eraYear` must be provided simultaneously. If `month` is specified, at least one of `eraYear` (together with `era`) or `year` must be provided. If all of `era`, `eraYear`, and `year` are prov

JSON results · Services directory