Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit61ff8d55b069207bf0bf5b6b36addef3f41aba19 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 08:20:34 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 08:20:34 +0300
Files15c3828506677c6a7262d9949be12a70a1ec7b6e /src
FMI-OOP-P1_TicketSystem-61ff8d55b069207bf0bf5b6b36addef3f41aba19.tar
FMI-OOP-P1_TicketSystem-61ff8d55b069207bf0bf5b6b36addef3f41aba19.tar.gz
FMI-OOP-P1_TicketSystem-61ff8d55b069207bf0bf5b6b36addef3f41aba19.zip
Parent6cdf1b7017c6988213dd881ca1f42b22d75bbf3b (diff)
Autocommit at 01.05.2022 @ 08:20
4 files changed, 23 insertions, 20 deletions
-rw-r--r--src/Date/Date.cpp7
-rw-r--r--src/Date/Date.h13
-rw-r--r--src/DateTime/DateTime.cpp7
-rw-r--r--src/DateTime/DateTime.h16
diff --git a/src/Date/Date.cpp b/src/Date/Date.cpp
deleted file mode 100644
index 4ef0f86..0000000
--- a/src/Date/Date.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "Date.h"
-
-Date::Date(unsigned day, unsigned month, unsigned year) {
- this->day = day;
- this->month = month;
- this->year = year;
-}
diff --git a/src/Date/Date.h b/src/Date/Date.h
deleted file mode 100644
index 22f8d45..0000000
--- a/src/Date/Date.h
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef HEADER_DATE
-#define HEADER_DATE
-
-class Date {
- unsigned day;
- unsigned month;
- unsigned year;
-
-public:
- Date(unsigned day, unsigned month, unsigned year);
-};
-
-#endif
diff --git a/src/DateTime/DateTime.cpp b/src/DateTime/DateTime.cpp
new file mode 100644
index 0000000..0d659da
--- /dev/null
+++ b/src/DateTime/DateTime.cpp
@@ -0,0 +1,7 @@
+#include "DateTime.h"
+
+DateTime::DateTime(unsigned hour, unsigned minute, unsigned day, unsigned month, unsigned year) {
+ this->day = day;
+ this->month = month;
+ this->year = year;
+}
diff --git a/src/DateTime/DateTime.h b/src/DateTime/DateTime.h
new file mode 100644
index 0000000..5f4e545
--- /dev/null
+++ b/src/DateTime/DateTime.h
@@ -0,0 +1,16 @@
+#ifndef HEADER_DATETIME
+#define HEADER_DATETIME
+
+class DateTime {
+ unsigned hour;
+ unsigned minute;
+ unsigned day;
+ unsigned month;
+ unsigned year;
+
+public:
+ DateTime(unsigned hour, unsigned minute, unsigned day, unsigned month, unsigned year);
+ int compare(const DateTime& other);
+};
+
+#endif