From f3f2cee48f3dd9961f003f817826375bdc6e8be5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 16:18:03 +0300 Subject: Autocommit at 05.05.2022 @ 16:18 --- src/DateTime/DateTime.h | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/DateTime/DateTime.h (limited to 'src/DateTime/DateTime.h') diff --git a/src/DateTime/DateTime.h b/src/DateTime/DateTime.h deleted file mode 100644 index e9f353c..0000000 --- a/src/DateTime/DateTime.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef HEADER_DATETIME -#define HEADER_DATETIME - -#include -#include - -class DateTime { - unsigned short hour; - unsigned short minute; - unsigned short day; - unsigned short month; - unsigned short year; - - bool isLeapYear(); - unsigned short daysInMonth(); - -public: - DateTime(); - DateTime(unsigned short hour, unsigned short minute, unsigned short day, unsigned short month, unsigned short year); - int compare(const DateTime& other) const; - - unsigned short get_hour() const; - bool set_hour(unsigned short newHour); - - unsigned short get_minute() const; - bool set_minute(unsigned short newMinute); - - unsigned short get_day() const; - bool set_day(unsigned short newDay); - - unsigned short get_month() const; - bool set_month(unsigned short newMonth); - - unsigned short get_year() const; - bool set_year(unsigned short newYear); -}; - -std::istream& operator>>(std::istream& istr, DateTime& dt); -std::ostream& operator<<(std::ostream& ostr, const DateTime& dt); - -#endif -- cgit v1.3.1-26-gb76a