# Bug report ### Bug description: [docs](https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior) say: ```text %Y Year with century as a decimal number. 0001, 0002, …, 2013, 2014, …, 9998, 9999 ``` but this is what is happening ```python from datetime import datetime print(datetime(9, 6, 7).strftime("%Y-%m-%d")) # 9-06-07 print(datetime(99, 6, 7).strftime("%Y-%m-%d")) # 99-06-07 print(datetime(999, 6, 7).strftime("%Y-%m-%d")) # 999-06-07 ``` ### CPython versions tested on: 3.10 ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-120820 * gh-121144 * gh-121145 * gh-122408 * gh-122409 * gh-135933 * gh-136387 <!-- /gh-linked-prs -->
Bug report
Bug description:
docs say:
but this is what is happening
CPython versions tested on:
3.10
Operating systems tested on:
No response
Linked PRs