Date.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* Date.hpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2026/01/16 18:06:10 by bchanot #+# #+# */
  9. /* Updated: 2026/01/16 19:29:02 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef DATE_HPP
  13. # define DATE_HPP
  14. # include <iostream>
  15. # include <string>
  16. struct Date {
  17. int year;
  18. int month;
  19. int day;
  20. };
  21. bool operator<(const Date &a, const Date &b);
  22. bool operator==(const Date &a, const Date &b);
  23. bool operator!=(const Date &a, const Date &b);
  24. std::ostream &operator<<(std::ostream &o, const Date &date);
  25. #endif /* ************************************************************ DATE_H */