suffixes for helper chrono types added in C++ 20
This commit is contained in:
parent
349e1c48d1
commit
db4e8b69ad
@ -584,6 +584,10 @@ template <typename Period> FMT_CONSTEXPR inline const char* get_units() {
|
||||
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<3600>>::value) return "h";
|
||||
if (std::is_same<Period, std::ratio<86400>>::value) return "d";
|
||||
if (std::is_same<Period, std::ratio<604800>>::value) return "wk";
|
||||
if (std::is_same<Period, std::ratio<2629746>>::value) return "mo";
|
||||
if (std::is_same<Period, std::ratio<31556952>>::value) return "a";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user