Return a string representing the time, controlled by an explicit format
string. For a complete list of formatting directives, see
- :ref:`strftime-strptime-behavior`.
+ :ref:`strftime-strptime-behavior`.
.. method:: time.__format__(format)
| | zero-padded decimal number. | | |
+-----------+--------------------------------+------------------------+-------+
| ``%Y`` | Year with century as a decimal | 0001, 0002, ..., 2013, | \(2) |
-| | number. | 2014, ...., 9998, 9999 | |
+| | number. | 2014, ..., 9998, 9999 | |
+-----------+--------------------------------+------------------------+-------+
| ``%H`` | Hour (24-hour clock) as a | 00, 01, ..., 23 | |
| | zero-padded decimal number. | | |