| 166 | // Converts "%H%M" style to C++20's "{:%H%M}" style and uses std::vformat |
| 167 | template <typename Duration> |
| 168 | std::string format(const char* fmt, const Duration& d) { |
| 169 | return std::vformat(std::string("{:") + fmt + "}", std::make_format_args(d)); |
| 170 | } |
| 171 | |
| 172 | inline constexpr std::chrono::month jan = std::chrono::January; |
| 173 | inline constexpr std::chrono::month dec = std::chrono::December; |
no outgoing calls
no test coverage detected