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.monthCode.

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.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.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

Temporal.PlainMonthDay.prototype.day

tly. Use the with() method to create a new `Temporal.PlainMonthDay` object with the desired new value. For general information and more examples, see Temporal.PlainDate.prototype.day. ## Examples ### Using day ```js const md = Temporal.PlainMonthDay.from("07-01"); // ISO 8601 calendar console.log(md.day); // 1 const md2 = Temporal.PlainMonthDay.from("2021-07-01[u-ca=chinese]"); console.log(md2.day); // 22; it is

Temporal.PlainMonthDay.prototype.monthCode

tly. Use the with() method to create a new `Temporal.PlainMonthDay` object with the desired new value. For general information and more examples, see Temporal.PlainDate.prototype.monthCode. ## Examples ### Using monthCode ```js const md = Temporal.PlainMonthDay.from("07-01"); // ISO 8601 calendar console.log(md.monthCode); // "M07" const md2 = Temporal.PlainMonthDay.from("2021-05-01[u-ca=chinese]"); console.log(

JSON results · Services directory