doc fix: time -> chrono

Change refs to fmt/time.h -> fmt/chrono.h
RST label rename time-api -> chrono-api
This commit is contained in:
Billy Donahue 2019-04-12 12:18:42 -04:00 committed by Victor Zverovich
parent ccd70f59ee
commit f569c1ba28

View File

@ -10,7 +10,7 @@ The {fmt} library API consists of the following parts:
facilities and a lightweight subset of formatting functions facilities and a lightweight subset of formatting functions
* :ref:`fmt/format.h <format-api>`: the full format API providing compile-time * :ref:`fmt/format.h <format-api>`: the full format API providing compile-time
format string checks, output iterator and user-defined type support format string checks, output iterator and user-defined type support
* :ref:`fmt/time.h <time-api>`: date and time formatting * :ref:`fmt/chrono.h <chrono-api>`: date and time formatting
* :ref:`fmt/ostream.h <ostream-api>`: ``std::ostream`` support * :ref:`fmt/ostream.h <ostream-api>`: ``std::ostream`` support
* :ref:`fmt/printf.h <printf-api>`: ``printf`` formatting * :ref:`fmt/printf.h <printf-api>`: ``printf`` formatting
@ -314,7 +314,7 @@ custom argument formatter class::
.. doxygenclass:: fmt::arg_formatter .. doxygenclass:: fmt::arg_formatter
:members: :members:
.. _time-api: .. _chrono-api:
Date and time formatting Date and time formatting
======================== ========================
@ -323,7 +323,7 @@ The library supports `strftime
<http://en.cppreference.com/w/cpp/chrono/c/strftime>`_-like date and time <http://en.cppreference.com/w/cpp/chrono/c/strftime>`_-like date and time
formatting:: formatting::
#include <fmt/time.h> #include <fmt/chrono.h>
std::time_t t = std::time(nullptr); std::time_t t = std::time(nullptr);
// Prints "The date is 2016-04-29." (with the current date) // Prints "The date is 2016-04-29." (with the current date)