-
Notifications
You must be signed in to change notification settings - Fork 34
Notes on Week Numbering #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mbarkhau
wants to merge
4
commits into
mahmoud:master
Choose a base branch
from
mbarkhau:patch-3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -59,8 +59,8 @@ versions: | |||||||
* **`0Y`** - Zero-padded year - 06, 16, 106 | ||||||||
* **`MM`** - Short month - 1, 2 ... 11, 12 | ||||||||
* **`0M`** - Zero-padded month - 01, 02 ... 11, 12 | ||||||||
* **`WW`** - Short week (since start of year) - 1, 2, 33, 52 | ||||||||
* **`0W`** - Zero-padded week - 01, 02, 33, 52 | ||||||||
* **`WW`** - Short week (since start of year) - 0, 1, 2, 33, 52, 53 | ||||||||
* **`0W`** - Zero-padded week - 00, 01, 02, 33, 52, 53 | ||||||||
* **`DD`** - Short day - 1, 2 ... 30, 31 | ||||||||
* **`0D`** - Zero-padded day - 01, 02 ... 30, 31 | ||||||||
|
||||||||
|
@@ -76,6 +76,25 @@ state which one. | |||||||
[gregorian]: https://en.wikipedia.org/wiki/Gregorian_calendar | ||||||||
[utc]: https://en.wikipedia.org/wiki/Coordinated_Universal_Time | ||||||||
|
||||||||
The definition of `WW`/`0W` in the above list is intentionally left | ||||||||
ambiguous. | ||||||||
|
||||||||
* There are at least four common week numbering schemes: The | ||||||||
[ISO][iso-week] and the [US Broadcast][us-week] standards as well | ||||||||
as the output of `%W` and `%U` in many implementations of `strftime` | ||||||||
which produce numbers in the range `[0-52]`. | ||||||||
* It would be tedious to determine which system a given project | ||||||||
actually uses. | ||||||||
* The last week of the year can span multiple years, so that a | ||||||||
version such as `2020.53` may have been published in 2021 | ||||||||
if it was published on Friday the 1st of January 2021. | ||||||||
|
||||||||
[iso-week]: https://en.wikipedia.org/wiki/ISO_week_date | ||||||||
[us-week]: https://en.wikipedia.org/wiki/Broadcast_calendar | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
Suffice it to say, there is perhaps a good reason that only few | ||||||||
projects use week numbers in their versioning. | ||||||||
|
||||||||
# Case studies | ||||||||
|
||||||||
CalVer has quite a few users. These are projects selected for their | ||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.