You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plaindate.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ The above read-only properties allow accessing each component of a date individu
165
165
The last month of every year has `month` equal to the `monthsInYear` property.
166
166
`month` values start at 1, which is different from legacy `Date` where months are represented by zero-based indices (0 to 11).
167
167
-`monthCode` is a calendar-specific string that identifies the month in a year-independent way.
168
-
For common (non-leap) months, `monthCode` should be `M${month}`.
168
+
For common (non-leap) months, `monthCode` should be `` `M${month}` ``.
169
169
For uncommon (leap) months in lunisolar calendars like Hebrew or Chinese, the month code is the previous month's code with with an "L" suffix appended.
170
170
Examples: `'M2'` => February; `'M8L'` => repeated 8th month in the Chinese calendar; `'M5L'` => Adar I in the Hebrew calendar.
171
171
-`day` is a positive integer representing the day of the month.
@@ -180,13 +180,13 @@ Usage examples:
180
180
date =Temporal.PlainDate.from('2006-08-24');
181
181
date.year; // => 2006
182
182
date.month; // => 8
183
-
date.monthCode; // => "8"
183
+
date.monthCode; // => "M8"
184
184
date.day; // => 24
185
185
186
186
date =Temporal.PlainDate.from('2019-02-23[u-ca-hebrew]');
Copy file name to clipboardExpand all lines: docs/plaindatetime.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,7 +241,7 @@ Date unit details:
241
241
The last month of every year has `month` equal to the `monthsInYear` property.
242
242
`month` values start at 1, which is different from legacy `Date` where months are represented by zero-based indices (0 to 11).
243
243
-`monthCode` is a calendar-specific string that identifies the month in a year-independent way.
244
-
For common (non-leap) months, `monthCode` should be `M${month}`.
244
+
For common (non-leap) months, `monthCode` should be `` `M${month}` ``.
245
245
For uncommon (leap) months in lunisolar calendars like Hebrew or Chinese, the month code is the previous month's code with with an "L" suffix appended.
246
246
Examples: `'M2'` => February; `'M8L'` => repeated 8th month in the Chinese calendar; `'M5L'` => Adar I in the Hebrew calendar.
247
247
-`day` is a positive integer representing the day of the month.
Copy file name to clipboardExpand all lines: docs/plainmonthday.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,7 @@ md.month; // undefined (month property is not present in this type; use monthCod
133
133
The above read-only properties allow accessing each component of the date individually.
134
134
135
135
-`monthCode` is a calendar-specific string that identifies the month in a year-independent way.
136
-
For common (non-leap) months, `monthCode` should be `M${month}`.
136
+
For common (non-leap) months, `monthCode` should be ```M${month}```.
137
137
For uncommon (leap) months in lunisolar calendars like Hebrew or Chinese, the month code is the previous month's code with with an "L" suffix appended.
138
138
Examples: `'M2'` => February; `'M8L'` => repeated 8th month in the Chinese calendar; `'M5L'` => Adar I in the Hebrew calendar.
139
139
-`day` is a positive integer representing the day of the month.
@@ -145,14 +145,14 @@ Usage examples:
145
145
146
146
```javascript
147
147
md =Temporal.PlainMonthDay.from('08-24');
148
-
md.monthCode; // => "8"
148
+
md.monthCode; // => "M8"
149
149
md.day; // => 24
150
-
md.month; // undefined (month property is not present in this type; use monthCode instead)
150
+
md.month; // undefined (no `month` property; use `monthCode` instead)
Copy file name to clipboardExpand all lines: docs/plainyearmonth.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -164,7 +164,7 @@ The above read-only properties allow accessing the year or month individually.
164
164
The last month of every year has `month` equal to the `monthsInYear` property.
165
165
`month` values start at 1, which is different from legacy `Date` where months are represented by zero-based indices (0 to 11).
166
166
-`monthCode` is a calendar-specific string that identifies the month in a year-independent way.
167
-
For common (non-leap) months, `monthCode` should be `M${month}`.
167
+
For common (non-leap) months, `monthCode` should be `` `M${month}` ``.
168
168
For uncommon (leap) months in lunisolar calendars like Hebrew or Chinese, the month code is the previous month's code with with an "L" suffix appended.
169
169
Examples: `'M2'` => February; `'M8L'` => repeated 8th month in the Chinese calendar; `'M5L'` => Adar I in the Hebrew calendar.
170
170
@@ -177,12 +177,12 @@ Usage examples:
177
177
ym =Temporal.PlainYearMonth.from('2019-06');
178
178
ym.year; // => 2019
179
179
ym.month; // => 6
180
-
ym.monthCode; // => "6"
180
+
ym.monthCode; // => "M6"
181
181
182
182
ym =Temporal.PlainYearMonth.from('2019-02-23[u-ca-hebrew]');
Copy file name to clipboardExpand all lines: docs/zoneddatetime.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ Date unit details:
301
301
The last month of every year has `month` equal to the `monthsInYear` property.
302
302
`month` values start at 1, which is different from legacy `Date` where months are represented by zero-based indices (0 to 11).
303
303
-`monthCode` is a calendar-specific string that identifies the month in a year-independent way.
304
-
For common (non-leap) months, `monthCode` should be `M${month}`.
304
+
For common (non-leap) months, `monthCode` should be `` `M${month}` ``.
305
305
For uncommon (leap) months in lunisolar calendars like Hebrew or Chinese, the month code is the previous month's code with with an "L" suffix appended.
306
306
Examples: `'M2'` => February; `'M8L'` => repeated 8th month in the Chinese calendar; `'M5L'` => Adar I in the Hebrew calendar.
307
307
-`day` is a positive integer representing the day of the month.
0 commit comments