Skip to content

Commit

Permalink
docs: document century cutoff for %y
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored and djc committed Jul 16, 2024
1 parent c46b18d commit 1eb3174
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/format/strftime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ Notes:
[^1]: `%C`, `%y`:
This is floor division, so 100 BCE (year number -99) will print `-1` and `99` respectively.
For `%y`, values greater or equal to 70 are interpreted as being in the 20th century,
values smaller than 70 in the 21st century.
[^2]: `%U`:
Week 1 starts with the first Sunday in that year.
Expand Down

0 comments on commit 1eb3174

Please sign in to comment.