A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../locale/time_put.html below:

std::time_put - cppreference.com

Class template std::time_put encapsulates date and time formatting rules. The I/O manipulator std::put_time uses the std::time_put facet of the I/O stream's locale to generate text representation of an std::tm object.

Inheritance diagram

If a std::time_put specialization is not guaranteed to be provided by the standard library (see below), the behaviors of its put() and do_put() are not guaranteed as specified.

[edit] Specializations

The standard library is guaranteed to provide the following specializations (they are required to be implemented by any locale object):

std::time_put<char> creates narrow string representations of date and time std::time_put<wchar_t> creates wide string representations of date and time

In addition, the standard library is also guaranteed to provide every specialization that satisfies the following type requirements:

[edit] Nested types Type Definition char_type CharT iter_type OutputIt [edit] Data members [edit] Member functions [edit] Protected member functions formats date/time and writes to output stream
(virtual protected member function) [edit] [edit] Example

Output:

水曜日 2011年11月09日 12時32分05秒
[edit] See also represents the system-supplied std::time_put for the named locale
(class template) [edit] parses time/date values from an input character sequence into std::tm
(class template) [edit] formats and outputs a date/time value according to the specified format
(function template) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4