public member function
<locale>
std::time_get::date_orderdateorder date_order() const;
Return date order
Returns a value of the enumerated member type dateorder indicating the preferred order of the date components for the date formats composed of day, month and year.The possible order values are:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// time_get::date_order example
#include <iostream> // std::cout
#include <locale> // std::locale, std::time_get, std::use_facet
int main ()
{
std::locale loc;
std::time_get<char>::dateorder order;
order = std::use_facet<std::time_get<char> >(loc).date_order();
switch (order) {
case std::time_get<char>::no_order : std::cout << "no_order"; break;
case std::time_get<char>::dmy : std::cout << "dmy"; break;
case std::time_get<char>::mdy : std::cout << "mdy"; break;
case std::time_get<char>::ymd : std::cout << "ymd"; break;
case std::time_get<char>::ydm : std::cout << "ydm"; break;
}
std::cout << '\n';
return 0;
}
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