Updated Boost datetime Examples Translated (markdown)

HowardHinnant
2015-09-05 16:00:21 -04:00
parent 530ef652c7
commit faa2688cdb

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