Closed
Description
TLDR: Temporal.PlainMonthDay.from("2025-06-01")
should work.
https://tc39.es/proposal-temporal/#prod-TemporalMonthDayString
When we parse a PlainMonthDay from a string, it is allowed to be specified as either an AnnotatedMonthDay
or an AnnotatedDateTime[~Zoned][~TimeRequired]
. It's similar for PlainTime and PlainYearMonth.
Currently we dispatch to individual parse functions:
Lines 690 to 695 in dc36a5b
This is incorrect. We could probably unconditionally attempt to parse a date_time here and fall back to month_day/time/etc where necessary, but I don't know how to handle the TimeRequired/etc stuff here. Do we just check the parse result?
Metadata
Metadata
Assignees
Type
Projects
Status