From 3c7c0dd8c33a70cb16c0d830edf8e2db3f67ad69 Mon Sep 17 00:00:00 2001 From: HowardHinnant Date: Sat, 5 Sep 2015 16:04:12 -0400 Subject: [PATCH] Updated Boost datetime Examples Translated (markdown) --- Boost-datetime-Examples-Translated.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Boost-datetime-Examples-Translated.md b/Boost-datetime-Examples-Translated.md index a134628..9a74a53 100644 --- a/Boost-datetime-Examples-Translated.md +++ b/Boost-datetime-Examples-Translated.md @@ -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(d1.month()) - << '.' << d1.year() << '\n'; // 01.10.2002 - cout << de_long_month_names[static_cast(m)-1] << '\n'; // Oktober - cout << de_long_weekday_names[static_cast(wd)] << '\n'; // Dienstag + cout << d1.day() << '.' + << setw(2) << static_cast(d1.month()) + << '.' << d1.year() << '\n'; + cout << de_long_month_names[static_cast(m)-1] << '\n'; + cout << de_long_weekday_names[static_cast(wd)] << '\n'; cout << static_cast(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'; }