mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 21:54:27 +02:00
Updated Boost datetime Examples Translated (markdown)
@@ -213,13 +213,14 @@ look if ported to this library.
|
||||
|
||||
using namespace std;
|
||||
// output the date in German using short month names
|
||||
cout << d1.day() << '.' << setw(2) << static_cast<unsigned>(d1.month())
|
||||
<< '.' << d1.year() << '\n'; // 01.10.2002
|
||||
cout << de_long_month_names[static_cast<unsigned>(m)-1] << '\n'; // Oktober
|
||||
cout << de_long_weekday_names[static_cast<unsigned>(wd)] << '\n'; // Dienstag
|
||||
cout << d1.day() << '.'
|
||||
<< setw(2) << static_cast<unsigned>(d1.month())
|
||||
<< '.' << d1.year() << '\n';
|
||||
cout << de_long_month_names[static_cast<unsigned>(m)-1] << '\n';
|
||||
cout << de_long_weekday_names[static_cast<unsigned>(wd)] << '\n';
|
||||
cout << static_cast<unsigned>(d1.month()) << '/' << d1.day()
|
||||
<< '/' << d1.year() << '\n'; // 10/01/2002
|
||||
cout << d1.year() << '-' << d1.month() << '-' << d1.day() << '\n'; // 2002-Oct-01
|
||||
<< '/' << d1.year() << '\n';
|
||||
cout << d1.year() << '-' << d1.month() << '-' << d1.day() << '\n';
|
||||
}
|
||||
|
||||
<a name="Date_Period_Calculations"></a>
|
||||
|
Reference in New Issue
Block a user