mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 03:21:34 +00:00
Update std::tm/chrono docs
This commit is contained in:
parent
bc654faf82
commit
1f3d44b859
@ -304,7 +304,8 @@ The available presentation types for pointers are:
|
|||||||
Chrono Format Specifications
|
Chrono Format Specifications
|
||||||
============================
|
============================
|
||||||
|
|
||||||
Format specifications for chrono types have the following syntax:
|
Format specifications for chrono types and ``std::tm`` have the following
|
||||||
|
syntax:
|
||||||
|
|
||||||
.. productionlist:: sf
|
.. productionlist:: sf
|
||||||
chrono_format_spec: [[`fill`]`align`][`width`]["." `precision`][`chrono_specs`]
|
chrono_format_spec: [[`fill`]`align`][`width`]["." `precision`][`chrono_specs`]
|
||||||
@ -348,10 +349,6 @@ points are:
|
|||||||
Specifiers that have a calendaric component such as `'d'` (the day of month)
|
Specifiers that have a calendaric component such as `'d'` (the day of month)
|
||||||
are valid only for ``std::tm`` and not durations or time points.
|
are valid only for ``std::tm`` and not durations or time points.
|
||||||
|
|
||||||
``std::tm`` uses the system's `strftime
|
|
||||||
<https://en.cppreference.com/w/cpp/chrono/c/strftime>`_ so refer to its
|
|
||||||
documentation for details on supported conversion specifiers.
|
|
||||||
|
|
||||||
.. range-specs:
|
.. range-specs:
|
||||||
|
|
||||||
Range Format Specifications
|
Range Format Specifications
|
||||||
|
Loading…
Reference in New Issue
Block a user