add a suffix for days and fix the one for minutes (#3664)

This commit is contained in:
Richard Kellnberger
2023-10-07 21:45:34 +02:00
committed by GitHub
parent f76603f21e
commit bb8d50f04b
2 changed files with 6 additions and 2 deletions

View File

@@ -582,8 +582,9 @@ template <typename Period> FMT_CONSTEXPR inline const char* get_units() {
if (std::is_same<Period, std::tera>::value) return "Ts";
if (std::is_same<Period, std::peta>::value) return "Ps";
if (std::is_same<Period, std::exa>::value) return "Es";
if (std::is_same<Period, std::ratio<60>>::value) return "m";
if (std::is_same<Period, std::ratio<60>>::value) return "min";
if (std::is_same<Period, std::ratio<3600>>::value) return "h";
if (std::is_same<Period, std::ratio<86400>>::value) return "d";
return nullptr;
}