File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1088,7 +1088,8 @@ def format(
1088
1088
self , fmt : str = "YYYY-MM-DD HH:mm:ssZZ" , locale : str = DEFAULT_LOCALE
1089
1089
) -> str :
1090
1090
"""Returns a string representation of the :class:`Arrow <arrow.arrow.Arrow>` object,
1091
- formatted according to the provided format string.
1091
+ formatted according to the provided format string. For a list of formatting values,
1092
+ see :ref:`supported-tokens`
1092
1093
1093
1094
:param fmt: the format string.
1094
1095
:param locale: the locale to format.
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ Move between the earlier and later moments of an ambiguous time:
156
156
Format
157
157
~~~~~~
158
158
159
+ For a list of formatting values, see :ref: `supported-tokens `
160
+
159
161
.. code-block :: python
160
162
161
163
>> > arrow.utcnow().format(' YYYY-MM-DD HH:mm:ss ZZ' )
@@ -365,6 +367,8 @@ Then get and use a factory for it:
365
367
>> > custom.days_till_xmas()
366
368
>> > 211
367
369
370
+ .. _supported-tokens :
371
+
368
372
Supported Tokens
369
373
~~~~~~~~~~~~~~~~
370
374
You can’t perform that action at this time.
0 commit comments