Justin Grant (invited expert) TC39 May 2021
getISOFields()
iso
{ calendar: 'chinese', isoDay: 25, isoMonth: 5, isoYear: 2021 }
ZonedDateTime.p.getISOFields()
PlainDateTime.p.getISOFields()
Intl
// Intl: unit name *output* is always singular, so singular preferred in docs // unit name *input* accepts singular or plural dtf = new Intl.DateTimeFormat('en-US'); dtf.formatToParts(new Date())[2]; // {type: "day", value: "14"} new Intl.RelativeTimeFormat('en-US').format(1, 'weeks'); // "in 1 week" new Intl.RelativeTimeFormat('en-US').format(1, 'week'); // "in 1 week" // Temporal: unit name *output* (custom calendars only) can be plural // unit name *input* accepts singular or plural, EXCEPT 'week' date = Temporal.PlainDate.from('2021-05-14'); date.until('2021-12-31', {smallestUnit: 'weeks'}); // P33W date.until('2021-12-31', {smallestUnit: 'week'}); // RangeError
'week'
Calendar.p.dateUntil()
Temporal.Duration
d.weeks