Updated hours bug

This commit is contained in:
Matthias Mitscherlich
2023-01-20 10:20:52 +01:00
parent a2b6f37414
commit f398219907
3 changed files with 27 additions and 130 deletions
+10 -2
View File
@@ -64,16 +64,24 @@ class Clock
{
public:
enum mode
{
TEN_BEFORE_HALF,
TWENTY_OVER
};
Clock();
Clock(Clock::mode mode);
void generateWordlist(list<string>* wordlist);
time_t getTime(void);
private:
Clock::mode clockmode;
time_t currentTime;
string toNumbers[20] {"zero", "one", "two", "three", "four",
"five", "six", "seven", "eight",
"nine", "ten", "eleven", "twelve",
@@ -82,7 +90,7 @@ class Clock
"nineteen"};
// void toString(TimeStructure* timestructure);
int calculateHours(int hour);
int calculateHours(struct tm time);
};