Standard C++ Library Reference ISO/IEC (VERSION3)
time_get::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
time_get::date_order
dateorder date_order() const;
The member function returns date_order().
time_get::do_date_order
virtual dateorder do_date_order() const;
The virtual protected member function returns a value of type time_base::dateorder, which describes the order
in which date components are matched by do_get_date.
time_get::do_get_date
virtual iter_type
do_get_date(iter_type first, iter_type last,
ios_base& iosbase, ios_base::iostate& state, tm *pt) const;
The virtual protected member function endeavors to match sequential elements beginning at first in the sequence
[first, last) until it has recognized a complete, nonempty date input field. If successful, it converts this field to
its equivalent value as the components tm::tm_mon, tm::tm_day, and tm::tm_year, and stores the results in
pt->tm_mon, pt->tm_day and pt->tm_year, respectively. It returns an iterator designating the first element
beyond the date input field. Otherwise, the function sets ios_base::failbit in state. It returns an iterator
designating the first element beyond any prefix of a valid date input field. In either case, if the return value equals last,
the function sets ios_base::eofbit in state.
In this implementation, the date input field is assumed to have three fields:
a month, which is either a sequence of decimal digits whose corresponding numeric value must be in the range [1,
12], giving the month plus one, or the sequence matched by get_month, giving the month
●
a day, which is a sequence of decimal digits whose corresponding numeric value must be in the range [1, 31],
giving the day of the month
●
a year, which is the sequence matched by get_year, giving the year●
The fields are separated by optional spaces, followed by an optional colon, comma, or slash, followed by optional
spaces. The order of the fields is as specified by time_get::date_order(), except that the value no_order is
taken as mdy and any sequence matched by get_month is always taken as a month.
time_get::do_get_month
virtual iter_type
do_get_month(iter_type first, iter_type last,
ios_base& iosbase, ios_base::iostate& state, tm *pt) const;
The virtual protected member function endeavors to match sequential elements beginning at first in the sequence
[first, last) until it has recognized a complete, nonempty month input field. If successful, it converts this field
to its equivalent value as the component tm::tm_mon, and stores the result in pt->tm_mon. It returns an iterator
designating the first element beyond the month input field. Otherwise, the function sets ios_base::failbit in
state. It returns an iterator designating the first element beyond any prefix of a valid month input field. In either case,
if the return value equals last, the function sets ios_base::eofbit in state.