Skip to content

Commit

Permalink
Fix the doc markup for PlainDate properties
Browse files Browse the repository at this point in the history
day is not a subfield of monthCode
  • Loading branch information
stof authored and ptomato committed Jun 7, 2024
1 parent 8c3a28e commit 82ad54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/plaindate.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ The above read-only properties allow accessing each component of a date individu
For common (non-leap) months, `monthCode` should be `` `M${month}` ``, where `month` is zero padded up to two digits.
For uncommon (leap) months in lunisolar calendars like Hebrew or Chinese, the month code is the previous month's code with an "L" suffix appended.
Examples: `'M02'` => February; `'M08L'` => repeated 8th month in the Chinese calendar; `'M05L'` => Adar I in the Hebrew calendar.
- `day` is a positive integer representing the day of the month.
- `day` is a positive integer representing the day of the month.

Either `month` or `monthCode` can be used in `from` or `with` to refer to the month.
Similarly, in calendars that user eras an `era`/`eraYear` pair can be used in place of `year` when calling `from` or `with`.
Expand Down

0 comments on commit 82ad54f

Please sign in to comment.