std::time_get<CharT,InputIt>::date_order,std::time_get<CharT,InputIt>::do_date_order (3) - Linux Manuals
std::time_get<CharT,InputIt>::date_order,std::time_get<CharT,InputIt>::do_date_order: std::time_get<CharT,InputIt>::date_order,std::time_get<CharT,InputIt>::do_date_order
NAME
std::time_get<CharT,InputIt>::date_order,std::time_get<CharT,InputIt>::do_date_order - std::time_get<CharT,InputIt>::date_order,std::time_get<CharT,InputIt>::do_date_order
Synopsis
Defined in header <locale>
public: (1)
dateorder date_order() const;
protected: (2)
virtual dateorder do_date_order() const;
1) Public member function, calls the protected virtual member function do_date_order of the most derived class.
2) Returns a value of type std::time_base::dateorder, which describes the default date format used by this locale (expected by get_date() and produced by std::strftime() with format specifier '%x').
The valid values (inherited from std::time_base) are:
no_order the format contains variable items (week day, Julian day, etc), or this function is not implemented
dmy day, month, year (European locales)
mdy month, day, year (American locales)
ymd year, month, day (Asian locales)
ydm year, day, month (rare)
Parameters
(none)
Return value
A value of type dateorder
Notes
This function is optional, it may return no_order in every case.
Example
// Run this code
Output:
See also
do_get_date extracts month, day, and year from input stream
[virtual]
time_base (class)