https://rentry.org/PPP2_chrono_helper_h ⎗ ✓ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25#pragma once #include <iostream> #include "Chrono.h" using std::istream; using std::ostream; namespace Chrono { const Date& default_date(); bool is_date(int y, Month m, int d); bool leapyear(int y); bool operator==(const Date& a, const Date& b); bool operator!=(const Date& a, const Date& b); ostream& operator<<(ostream& os, const Date& d); ostream& operator<<(ostream& os, Date& d); istream& operator>>(istream& is, Date& dd); ostream& operator<<(ostream& os, const Day& d); Day day_of_week(const Date& d); Date next_Sunday(const Date& d); Date next_weekday(const Date& d); } // namespace Chrono sauce: Bjarne Stroustrup's PPP2 textbook /robowaifu/'s official C++ learning textbook thread main_chrono • Chrono.h • Chrono.cpp • chrono_helper.cpp