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/../algorithm/../../cpp/locale/time_put_byname.html below:

std::time_put_byname - cppreference.com

std::time_put_byname is a std::time_put facet which encapsulates time and date formatting rules of the locale specified at its construction.

[edit] Specializations

The standard library is guaranteed to provide every specialization that satisfies the following type requirements:

[edit] Nested types Type Definition char_type CharT iter_type OutputIt [edit] Member functions constructs a new time_put_byname facet
(public member function) [edit] destroys a time_put_byname facet
(protected member function) [edit] std::time_put_byname::time_put_byname

Constructs a new std::time_put_byname facet for a locale with name.

refs is used for resource management: if refs == 0, the implementation destroys the facet, when the last std::locale object holding it is destroyed. Otherwise, the object is not destroyed.

Parameters name - the name of the locale refs - the number of references that link to the facet std::time_put_byname::~time_put_byname

protected:
~time_put_byname();

Destroys the facet.

Inherited from std::time_put [edit] Data members Member functions invokes do_put
(public member function of std::time_put<CharT,OutputIt>) [edit] Protected member functions formats date/time and writes to output stream
(virtual protected member function of std::time_put<CharT,OutputIt>) [edit] [edit] Example

Prints current time using the "C" locale with the time_put facet replaced by various std::time_put_byname facets. The result shown was obtained using the clang compiler.

Possible output:

木曜日 2023年10月05日 19時44分51秒
Четверг Чт 05 окт 2023 19:44:51
torsdag tor  5 okt 2023 19:44:51
[edit] See also

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