From 61ff8d55b069207bf0bf5b6b36addef3f41aba19 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 1 May 2022 08:20:34 +0300 Subject: Autocommit at 01.05.2022 @ 08:20 --- src/DateTime/DateTime.cpp | 7 +++++++ src/DateTime/DateTime.h | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/DateTime/DateTime.cpp create mode 100644 src/DateTime/DateTime.h (limited to 'src/DateTime') 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 -- cgit v1.3.1-26-gb76a