1) Public member function, calls the protected virtual member function do_get_time
of the most derived class.
Reads successive characters from the sequence
[
beg,
end)
and parses out the time value following the same rules as the format specifier
"%H:%M:%S"as used by the functions
std::get_time,
time_get::get, and the POSIX function
strptime()
.
Iterator pointing one past the last character in [
beg,
end)
that was recognized as a part of a valid date.
For the alphabetic components of the default time format (if any), this function is usually case-insensitive.
If a parsing error is encountered, most implementations of this function leave *t unmodified.
[edit] ExampleOutput:
Parsing the time out of '21:40:11' in the locale ru_RU.utf8 Hours: 21, Minutes: 40, Seconds: 11 Parsing the time out of '21-40-11' in the locale ru_RU.utf8 Parse failed. Unparsed string: -40-11 Parsing the time out of '21æ37å58ç§' in the locale ja_JP.utf8 Hours: 21, Minutes: 37, Seconds: 58[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior LWG 248 C++98eofbit
was not set upon reaching the end iterator sets eofbit
if a valid time has not been read LWG 461 C++98 do_get_time
needed to parse localized time representation parses with "%H:%M:%S" format [edit] See also parses a date/time value of specified format
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