std::time_put_byname
is a std::time_put facet which encapsulates time and date formatting rules of the locale specified at its construction.
The standard library is guaranteed to provide every specialization that satisfies the following type requirements:
CharT
is one of char and wchar_t, andOutputIt
must meet the requirements of LegacyOutputIterator.char_type
CharT
iter_type
OutputIt
[edit] Member functions constructs a new time_put_byname
facet
time_put_byname
facet
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_bynameprotected:
~time_put_byname();
Destroys the facet.
Inherited from std::time_put [edit] Data members Member functions invokesdo_put
std::time_put<CharT,OutputIt>
) [edit] Protected member functions formats date/time and writes to output stream
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