From db4e8b69add0f371e5ebdb93bcb85e37a20619d7 Mon Sep 17 00:00:00 2001 From: Richard Kellnberger Date: Sun, 1 Oct 2023 16:56:43 +0200 Subject: [PATCH] suffixes for helper chrono types added in C++ 20 --- include/fmt/chrono.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 8f5426f2..cf1db1ee 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -584,6 +584,10 @@ template FMT_CONSTEXPR inline const char* get_units() { if (std::is_same::value) return "Es"; if (std::is_same>::value) return "m"; if (std::is_same>::value) return "h"; + if (std::is_same>::value) return "d"; + if (std::is_same>::value) return "wk"; + if (std::is_same>::value) return "mo"; + if (std::is_same>::value) return "a"; return nullptr; }