#30990 closed Bug (fixed)
Documentation error for `z` date format
Reported by: | Baptiste Mispelon | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The documentation for the z
date format states that its output ranges from "0 to 365".
This is actually incorrect and the range is 1-366 (January 1st is 1 and December 31st is 365 or 366 depending on whether it's a leap year or not).
While digging there, I also noticed that the implementations of the z
and W
formats seemed to just reimplement code that it already in Python's standard library so I added some commits to the pull request to simplify that a bit.
Change History (8)
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:4 by , 5 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR