-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for "week of month" in SimpleDateTimeFormatter (#11103)
Summary: `java.text.SimpleDateFormat` supports using 'week of month' to parse/format date. The specifier of 'week of month' is 'W'. Now DateTimeFormatter supports 3 group of fields specifying the day within the year. They are following combinations: ``` year + week + dayOfWeek year + dayOfYear year + month + day ``` This PR introduces a new combination that is `year + month + weekOfMonth + dayOfWeek` and adds support for "week of month" in SimpleDateTimeFormatter. Relates issue : #10354 Pull Request resolved: #11103 Reviewed By: Yuhta, amitkdutta Differential Revision: D64920551 Pulled By: pedroerp fbshipit-source-id: 3db9b6d33783aac0ee41791aeac96142e63fb22a
- Loading branch information
1 parent
4049362
commit a1d923e
Showing
5 changed files
with
205 additions
and
7 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
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
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