| 124 | UString GameTime::getWeekString() const { return format("%s %d", tr("Week"), getWeek()); } |
| 125 | |
| 126 | unsigned int GameTime::getMonth() const |
| 127 | { |
| 128 | const date currentDate = getPtime(this->ticks).date(); |
| 129 | |
| 130 | const int months = (currentDate.year() - GAME_START.date().year()) * 12 + currentDate.month() - |
| 131 | GAME_START.date().month(); |
| 132 | return months; |
| 133 | } |
| 134 | |
| 135 | unsigned int GameTime::getWeek() const |
| 136 | { |
nothing calls this directly
no test coverage detected