-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify
from
, with
, and offset handling
- github.com//issues/718#issuecomment-655817615 has details about these changes. - Remove `timeZoneOffsetNanoseconds` from `getFields()` - Rename `prefer` option to `offset`, and rename its choices to `use` (always use offset), `ignore` (never use it), and `reject` (throw if conflict). - Add new `offset: 'prefer'` (use if valid for that time zone, ignore if not) option and make it the default for `with` - Update `from` and `with` to use new options - Simplify `from` business logic & refactor to share string vs object code (net reduction of 50+ LOC) - Updated JSDoc with changes above - Fix various bugs with non-ISO calendars, e.g. toString() - Added __repr__ for console debugging - Fixed lint configs
- Loading branch information
1 parent
50efb2c
commit 96128b0
Showing
7 changed files
with
445 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.