std::time_get (3) - Linux Manuals
std::time_get: std::time_get
NAME
Synopsis
Defined in header <locale>
template<
class CharT,
class InputIt = std::istreambuf_iterator<CharT>
> class time_get;
Class template std::time_get encapsulates date and time parsing rules. The I/O manipulator std::get_time uses the std::time_get facet of the I/O stream's locale to convert text input to a std::tm object.
std-time get-inheritance.svg
Inheritance diagram
Type requirements
-
InputIt must meet the requirements of LegacyInputIterator.
Specializations
Two standalone (locale-independent) full specializations and two partial specializations are provided by the standard library:
Defined in header <locale>
std::time_get<char> parses narrow string representations of date and time
std::time_get<wchar_t> parses wide string representations of date and time
std::time_get<char, InputIt> parses narrow string representations of date and time using custom input iterator
std::time_get<wchar_t, InputIt> parses wide string representations of date and time using custom input iterator
In addition, every locale object constructed in a C++ program implements its own (locale-specific) versions of these specializations.
Member types
Member type Definition
char_type CharT
iter_type InputIt
Member functions
constructor (public member function)
destructor (protected member function)
date_order (public member function)
get_time (public member function)
get_date (public member function)
get_weekday (public member function)
get_monthname (public member function)
get_year (public member function)
get invokes do_get
(C++11)
Member objects
static std::locale::id id (public member object)
Protected member functions
do_date_order obtains preferred ordering of day, month, and year
[virtual]
do_get_time extracts hours, minutes, and seconds from input stream
[virtual]
do_get_date extracts month, day, and year from input stream
[virtual]
do_get_weekday extracts the name of a day of the week from input stream
[virtual]
do_get_monthname extacts a month name from input stream
[virtual]
do_get_year extracts a year from input stream