| 255 | } |
| 256 | |
| 257 | std::chrono::system_clock::time_point Utils::ParseDatetime(const std::string &datetime_str) { |
| 258 | std::tm tm = {}; |
| 259 | std::stringstream ss(datetime_str); |
| 260 | ss >> std::get_time(&tm, "%Y%m%d_%H%M%S"); |
| 261 | tm.tm_isdst = -1; |
| 262 | return std::chrono::system_clock::from_time_t(std::mktime(&tm)); |
| 263 | } |
| 264 | |
| 265 | std::string Utils::FindFilesFromDatetime(const std::string &root, const std::string &basename) { |
| 266 | if (basename.length() < 15) { |
nothing calls this directly
no outgoing calls
no test coverage detected