| 177 | //===----------------------------------------------------------------------===// |
| 178 | |
| 179 | [[nodiscard]] static day __parse_day(istream& __input) { |
| 180 | unsigned __result = chrono::__parse_integral(__input, false); |
| 181 | if (__result > 31) |
| 182 | std::__throw_runtime_error("corrupt tzdb day: value too large"); |
| 183 | return day{__result}; |
| 184 | } |
| 185 | |
| 186 | [[nodiscard]] static weekday __parse_weekday(istream& __input) { |
| 187 | // TZDB allows the shortest unique name. |
no test coverage detected