summaryrefslogtreecommitdiff
path: root/docs/ref/templates
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2021-05-10 15:33:48 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-05-12 08:17:06 +0200
commit34363a391bad5a007f2ab35a6d8c4ece4c3234f6 (patch)
treeea43d8319f7ff0d71b36c423518a5fc1380762d4 /docs/ref/templates
parentb1a4b1f0bdf05adbd3dc4dde14228e68da54c1a3 (diff)
downloaddjango-34363a391bad5a007f2ab35a6d8c4ece4c3234f6.tar.gz
Fixed #32735 -- Made DateFormat.Y() return a zero-padded year.
Diffstat (limited to 'docs/ref/templates')
-rw-r--r--docs/ref/templates/builtins.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 1dd554aa13..e468b9c62e 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -1367,7 +1367,7 @@ Format character Description Example output
``t`` Number of days in the given month. ``28`` to ``31``
**Year**
``y`` Year, 2 digits with leading zeros. ``'00'`` to ``'99'``
-``Y`` Year, 4 digits. ``'1999'``
+``Y`` Year, 4 digits with leading zeros. ``'0001'``, ..., ``'1999'``, ..., ``'9999'``
``L`` Boolean for whether it's a leap year. ``True`` or ``False``
``o`` ISO-8601 week-numbering year, ``'1999'``
corresponding to the ISO-8601 week