A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../locale/time_get.html below:

std::time_get - cppreference.com

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.

Inheritance diagram

If a std::time_get specialization is not guaranteed to be provided by the standard library (see below), the behaviors of its member functions (except the constructor and destructor) are not guaranteed as specified.

[edit] Specializations

The standard library is guaranteed to provide the following specializations (they are required to be implemented by any locale object):

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

In addition, the standard library is also guaranteed to provide every specialization that satisfies the following type requirements:

[edit] Nested types Type Definition char_type CharT iter_type InputIt [edit] Data members [edit] Member functions [edit] Protected member functions obtains preferred ordering of day, month, and year
(virtual protected member function) [edit] extracts hours, minutes, and seconds from input stream
(virtual protected member function) [edit] extracts month, day, and year from input stream
(virtual protected member function) [edit] extracts the name of a day of the week from input stream
(virtual protected member function) [edit] extracts a month name from input stream
(virtual protected member function) [edit] extracts a year from input stream
(virtual protected member function) [edit] extracts date/time components from input stream, according to the specified format
(virtual protected member function) [edit] Inherited from std::time_base Nested types Type Definition dateorder date order enumeration type, defining the values no_order, dmy, mdy, ymd, and ydm [edit] Example

Note: choose clang to observe the output. libstdc++ does not correctly implement the %b specifier: bug 78714.

Possible output:

[edit] See also formats contents of std::tm for output as character sequence
(class template) [edit] parses a date/time value of specified format
(function template) [edit]

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