annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
1 #ifndef __date_h
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
2 #define __date_h
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
3 #include <cstdint>
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
4 #include <QDate>
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
5 class Date {
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
6 public:
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
7 Date();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
8 Date(int32_t y);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
9 Date(int32_t y, int8_t m, int8_t d);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
10 void SetYear(int32_t y);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
11 void SetMonth(int8_t m);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
12 void SetDay(int8_t d);
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
13 int32_t GetYear();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
14 int8_t GetMonth();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
15 int8_t GetDay();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
16 QDate GetAsQDate();
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
17
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
18 private:
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
19 int32_t year = -1;
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
20 int8_t month = -1;
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
21 int8_t day = -1;
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
22 };
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
23 #endif // __date_h