| 133 | } |
| 134 | |
| 135 | unsigned int GameTime::getWeek() const |
| 136 | { |
| 137 | const date firstMonday = previous_weekday(GAME_START.date(), greg_weekday(Monday)); |
| 138 | const date lastMonday = previous_weekday(getPtime(this->ticks).date(), greg_weekday(Monday)); |
| 139 | const date_duration duration = lastMonday - firstMonday; |
| 140 | return duration.days() / 7 + 1; |
| 141 | } |
| 142 | |
| 143 | unsigned int GameTime::getFirstDayOfCurrentWeek() const |
| 144 | { |
no test coverage detected