| 99 | } |
| 100 | |
| 101 | std::optional<Time> getTimeFromString(const String & text) |
| 102 | { |
| 103 | struct std::tm tmp; |
| 104 | std::istringstream ss(text); |
| 105 | ss >> std::get_time(&tmp, "%H:%M"); |
| 106 | if (ss.fail()) |
| 107 | { |
| 108 | return std::nullopt; |
| 109 | } |
| 110 | return DateLUT::serverTimezoneInstance().toTime(DateLUT::serverTimezoneInstance().makeDateTime(1971, 1, 1, tmp.tm_hour, tmp.tm_min, 0)); |
| 111 | } |
| 112 | |
| 113 | |
| 114 | std::optional<double> calcPriority(const InternalConfig & cfg, UInt64 total_udi, UInt64 table_row_count) |
no test coverage detected