class template
std::time_get
<locale>
template <class charT, class InputIterator = istreambuf_iterator<charT> >
class time_get;
Facet to parse dates and times
|  |
time_get |
|  |
|
The
time_get standard facet is used to parse sequences of characters to extract date and time information into a
tm structure.
time_get objects are prevented to be locally constructed by having a protected destructor. Only those installed in
locale objects should be used through mechanisms such as
use_facet.
This template class has two template parameters, representing the
character type and the
iterator type. They are referred inside this entire reference as
charT and
InputIterator, respectively:
|
template <class charT, class InputIterator = istreambuf_iterator<charT> > time_get;
|
The class defines two member alias types for these types:
num_get::char_type and
num_get::iter_type, respectively.
The
character type is the type of the characters in the sequence from which characters are to interpreted.
The
iterator type is the type of the input iterators pointing to the beginning, end and final elements in the character sequence.
Notice that this defaults to the
istreambuf_iterator type for the first template parameter
charT, although the template can be instantiated for any other type of
input iterator.
Public members
It includes the following public member functions:
- (constructor)
- time_get constructor (public member function)
- date_order
- Return date order (public member function)
- get_time
- Read time (public member function)
- get_date
- Read date (public member function)
- get_weekday
- Read weekday (public member function)
- get_monthname
- Read month name (public member function)
- get_year
- Read year (public member function)
Along with the following public member types:
- char_type
- Character type (public member type)
- iter_type
- Iterator type (public member type)
Virtual protected members
The class defines the virtual protected members in charge of implementing the expected behavior of their corresponding public member functions:
- do_date_order
- Return date order [virtual] (protected virtual member function)
- do_get_time
- Read time [virtual] (protected virtual member function)
- do_get_date
- Read date [virtual] (protected virtual member function)
- do_get_weekday
- Read weekday [virtual] (protected virtual member function)
- do_get_monthname
- Read month name [virtual] (protected virtual member function)
- do_get_year
- Read year [virtual] (protected virtual member function)
Along with the class destructor:
- (destructor)
- time_get destructor (protected member function)