-
Notifications
You must be signed in to change notification settings - Fork 769
Open
Milestone
Description
These are ideas for potential breaking changes that could be introduced in v2.0, all open for discussion.
Settings.setDefaultZoneinstead ofSettings.defaultZonesetter since input type differs from getter- IANAZone constructor made private, use
create()instead to benefit from the cache - Rename
Zone.universaltoisUniversal - New
DateTime.now()method equivalent tolocalwith no parameter - Rename
options.setZonetokeepZoneinDateTimeconstructors' options - Add a new
DateTime.plus/minus(12, 'hours')method - Deprecate
plus/minus(ms), i.e. a number parameter which has no obvious meaning when reading the code - In
DateTime,resolvedLocaleOpts,toLocaleStringandtoLocalePartsall accept anoptionsparameter which is a union ofLocaleOptions(i.e.{ locale, outputCalendar, numberingSystem }already used inreconfigureandtoFormat) andIntl.DateTimeFormatOptions. These could be split into two options parameters instead, each with a different role DateTime::resolvedLocaleOptsreturns an{ locale, outputCalendar, numberingSystem }object, whereasIntl.ResolvedDateTimeFormatOptionsreturns{ locale, calendar, numberingSystem (and more) }.outputCalendarcould be renamed tocalendarinstead to be more consistent.- Rename
DateTime::resolvedLocaleOptstoresolvedLocaleOptions DateTime.toSecondsreturns an integer value (see DateTime.toSeconds returns seconds.milliseconds #565), so that it can be used in Unix timestamps creation, and can otherwise be replaced bytoMillis() / 1000
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels