Mercurial > minori
diff src/include/date.h @ 2:23d0d9319a00
Update
Also converted everything to LF from CRLF
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 03:16:26 -0400 |
parents | |
children | 1d82f6e04d7d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/include/date.h Sat Aug 12 03:16:26 2023 -0400 @@ -0,0 +1,23 @@ +#ifndef __date_h +#define __date_h +#include <cstdint> +#include <QDate> +class Date { + public: + Date(); + Date(int32_t y); + Date(int32_t y, int8_t m, int8_t d); + void SetYear(int32_t y); + void SetMonth(int8_t m); + void SetDay(int8_t d); + int32_t GetYear(); + int8_t GetMonth(); + int8_t GetDay(); + QDate GetAsQDate(); + + private: + int32_t year = -1; + int8_t month = -1; + int8_t day = -1; +}; +#endif // __date_h \ No newline at end of file