From cc4196fa77692b6588622c86ae7d152e7f21c645 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 1 May 2022 08:25:36 +0300 Subject: Autocommit at 01.05.2022 @ 08:25 --- src/DateTime/DateTime.cpp | 6 +++++- src/DateTime/DateTime.h | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'src/DateTime') 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); }; -- cgit v1.3.1-26-gb76a