Updated Boost datetime Examples Translated (markdown)

HowardHinnant
2015-09-05 16:00:57 -04:00
parent faa2688cdb
commit 1e5139f4cc

@@ -112,7 +112,7 @@ look if ported to this library.
throw std::exception{};
auto birthday = day_point(d);
auto today = floor<days>(current_zone()
->to_local(system_clock::now()).first);
->to_local(system_clock::now()).first);
auto days_alive = today - birthday;
if (days_alive == days{1})
std::cout << "Born yesterday, very funny\n";