@@ -2762,17 +2762,16 @@ Notes:
27622762 interchangeable.
27632763
27642764(9)
2765- When used with the :meth: `~.datetime.strftime ` method, the leading zero is optional
2766- for formats ``%d ``, ``%m ``, ``%H ``, ``%I ``, ``%M ``, ``%S ``, ``%j ``, ``%U ``,
2767- ``%W ``, ``%V `` and ``%y `` (except that on Apple platforms, ``%y `` always produces
2768- a leading zero). Use the ``%- `` flag to produce non-zero-padded output
2769- (for example, ``%-d ``).
2770-
2771- (10)
27722765 When used with the :meth: `~.datetime.strptime ` method, the leading zero is optional
27732766 for formats ``%d ``, ``%m ``, ``%H ``, ``%I ``, ``%M ``, ``%S ``, ``%j ``, ``%U ``,
27742767 ``%W ``, and ``%V ``. Format ``%y `` does require a leading zero.
27752768
2769+ When used with the :meth: `~.datetime.strftime ` method, the leading zero is optional
2770+ for formats ``%d ``, ``%m ``, ``%H ``, ``%I ``, ``%M ``, ``%S ``, ``%j ``, ``%U ``,
2771+ ``%W ``, ``%V `` and ``%y ``. The ``%- `` flag (for example, ``%-d ``) will produce
2772+ non-zero-padded output, except for ``%-y `` on Apple platforms, which is still
2773+ zero-padded.
2774+
27762775(11)
27772776 When parsing a month and day using :meth: `~.datetime.strptime `, always
27782777 include a year in the format. If the value you need to parse lacks a year,
0 commit comments