diff options
Autocommit at 01.05.2022 @ 08:25
2 files changed, 11 insertions, 7 deletions
| -rw-r--r-- | src/DateTime/DateTime.cpp | 6 | ||||
| -rw-r--r-- | src/DateTime/DateTime.h | 12 |
diff --git a/src/DateTime/DateTime.cpp b/src/DateTime/DateTime.cpp index 0d659da..cb30268 100644 --- a/src/DateTime/DateTime.cpp +++ b/src/DateTime/DateTime.cpp @@ -1,7 +1,11 @@ #include "DateTime.h" -DateTime::DateTime(unsigned hour, unsigned minute, unsigned day, unsigned month, unsigned year) { +DateTime::DateTime(unsigned char hour, unsigned char minute, unsigned char day, unsigned char month, unsigned short year) { this->day = day; this->month = month; this->year = year; } + +DateTime::compare(const DateTime& other) { + +} diff --git a/src/DateTime/DateTime.h b/src/DateTime/DateTime.h index 5f4e545..6d6df46 100644 --- a/src/DateTime/DateTime.h +++ b/src/DateTime/DateTime.h @@ -2,14 +2,14 @@ #define HEADER_DATETIME class DateTime { - unsigned hour; - unsigned minute; - unsigned day; - unsigned month; - unsigned year; + unsigned char hour; + unsigned char minute; + unsigned char day; + unsigned char month; + unsigned short year; public: - DateTime(unsigned hour, unsigned minute, unsigned day, unsigned month, unsigned year); + DateTime(unsigned char hour, unsigned char minute, unsigned char day, unsigned char month, unsigned short year); int compare(const DateTime& other); }; |
