mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 21:54:27 +02:00
Updated Boost datetime Examples Translated (markdown)
@@ -314,7 +314,7 @@ look if ported to this library.
|
||||
auto ym = year(yi)/mi;
|
||||
if (!ym.ok())
|
||||
throw std::runtime_error("Bad year or month: "
|
||||
+ std::to_string(yi) + "/" + std::to_string(mi));
|
||||
+ std::to_string(yi) + "/" + std::to_string(mi));
|
||||
auto wd = weekday{ym/1};
|
||||
auto endOfMonth = (ym/last).day();
|
||||
for (auto d = 1_d; d <= endOfMonth; d += days{1}, wd += days{1})
|
||||
|
Reference in New Issue
Block a user