Namespaces
Variants
Views
Actions

std::time_get_byname

From cppreference.com
< cpp‎ | locale
Revision as of 17:49, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <locale>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class CharT, class InputIterator = std::istreambuf_iterator<CharT> >
class time_get_byname : public std::time_get<CharT, InputIterator> {
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

std::time_get_byname is a std::time_get facet which encapsulates time and date parsing rules of the locale specified at its construction.

Two specializations are provided by the standard library

Defined in header <locale>
std::time_get_byname<char, InputIterator> narrow/multibyte time parsing
std::time_get_byname<wchar_t>, InputIterator wide string time parsing

Contents

Member types

Member type Definition
char_type CharT
iter_type OutputIterator

Member functions

constructs a new time_get_byname facet
(public member function)
destructs a time_get_byname facet
(protected member function)

Inherited from std::time_get

Member type Definition
char_type CharT
iter_type InputIt

Member objects

Member name Type
id (static) std::locale::id

Member functions

invokes do_date_order
(public member function of std::time_get) [edit]
invokes do_get_time
(public member function of std::time_get) [edit]
invokes do_get_date
(public member function of std::time_get) [edit]
invokes do_get_weekday
(public member function of std::time_get) [edit]
invokes do_get_monthname
(public member function of std::time_get) [edit]
invokes do_get_year
(public member function of std::time_get) [edit]
(C++11)
invokes do_get
(public member function of std::time_get) [edit]

Protected member functions

obtains preferred ordering of day, month, and year
(virtual protected member function of std::time_get) [edit]
[virtual]
extracts hours, minutes, and seconds from input stream
(virtual protected member function of std::time_get) [edit]
[virtual]
extracts month, day, and year from input stream
(virtual protected member function of std::time_get) [edit]
extracts the name of a day of the week from input stream
(virtual protected member function of std::time_get) [edit]
extacts a month name from input stream
(virtual protected member function of std::time_get) [edit]
[virtual]
extracts a year from input stream
(virtual protected member function of std::time_get) [edit]
[virtual] (C++11)
extracts date/time components from input stream, according to the specified format
(virtual protected member function of std::time_get) [edit]

Inherited from std::time_base

Type Definition
dateorder date order enumeration type, defining the values no_order, dmy, mdy, ymd, and ydm

Example

See also

Template:cpp/locale/dcl list time getTemplate:cpp/io/manip/dcl list get time