| Localization library | |||||||||||||||||||||||||
| Regular expressions library(C++11) | |||||||||||||||||||||||||
| Formatting library(C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <locale> | ||
template< class CharT, | ||
std::time_get_byname is astd::time_get facet which encapsulates time and date parsing rules of the locale specified at its construction.
Contents |
The standard library is guaranteed to provide every specialization that satisfies the following type requirements:
CharT is one ofchar andwchar_t, andInputIt must meet the requirements ofLegacyInputIterator.| Type | Definition |
char_type | CharT |
iter_type | InputIt |
(constructor) | constructs a newtime_get_byname facet(public member function)[edit] |
(destructor) | destroys atime_get_byname facet(protected member function)[edit] |
explicit time_get_byname(constchar* name,std::size_t refs=0); | ||
explicit time_get_byname(conststd::string& name,std::size_t refs=0); | (since C++11) | |
Constructs a newstd::time_get_byname facet for a locale withname.
refs is used for resource management: ifrefs==0, the implementation destroys the facet, when the laststd::locale object holding it is destroyed. Otherwise, the object is not destroyed.
| name | - | the name of the locale |
| refs | - | the number of references that link to the facet |
protected: ~time_get_byname(); | ||
Destroys the facet.
| Type | Definition |
char_type | CharT |
iter_type | InputIt |
| Member | Description |
std::locale::idid[static] | the identifier of thefacet |
invokesdo_date_order(public member function of std::time_get<CharT,InputIt>)[edit] | |
invokesdo_get_time(public member function of std::time_get<CharT,InputIt>)[edit] | |
invokesdo_get_date(public member function of std::time_get<CharT,InputIt>)[edit] | |
invokesdo_get_weekday(public member function of std::time_get<CharT,InputIt>)[edit] | |
invokesdo_get_monthname(public member function of std::time_get<CharT,InputIt>)[edit] | |
invokesdo_get_year(public member function of std::time_get<CharT,InputIt>)[edit] | |
(C++11) | invokesdo_get(public member function of std::time_get<CharT,InputIt>)[edit] |
[virtual] | obtains preferred ordering of day, month, and year (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
[virtual] | extracts hours, minutes, and seconds from input stream (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
[virtual] | extracts month, day, and year from input stream (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
[virtual] | extracts the name of a day of the week from input stream (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
[virtual] | extracts a month name from input stream (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
[virtual] | extracts a year from input stream (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
[virtual](C++11) | extracts date/time components from input stream, according to the specified format (virtual protected member function of std::time_get<CharT,InputIt>)[edit] |
| Type | Definition |
dateorder | date order enumeration type, defining the valuesno_order,dmy,mdy,ymd, andydm |
| This section is incomplete Reason: no example |
| parses time/date values from an input character sequence intostd::tm (class template)[edit] | |
(C++11) | parses a date/time value of specified format (function template)[edit] |