Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commitcc4196fa77692b6588622c86ae7d152e7f21c645 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 08:25:36 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 08:25:36 +0300
Files36426e1f51eb7b5f74a1a3b8199612745b73d0f7 /src
FMI-OOP-P1_TicketSystem-cc4196fa77692b6588622c86ae7d152e7f21c645.tar
FMI-OOP-P1_TicketSystem-cc4196fa77692b6588622c86ae7d152e7f21c645.tar.gz
FMI-OOP-P1_TicketSystem-cc4196fa77692b6588622c86ae7d152e7f21c645.zip
Parent61ff8d55b069207bf0bf5b6b36addef3f41aba19 (diff)
Autocommit at 01.05.2022 @ 08:25
2 files changed, 11 insertions, 7 deletions
-rw-r--r--src/DateTime/DateTime.cpp6
-rw-r--r--src/DateTime/DateTime.h12
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);
};