Fix typo in 'day' time unit declaration

Output formatted in days (e.g., `quantity_cast<si::day>(some_time)`) had the right scaling, but the wrong unit (`h` instead of `d`)
This commit is contained in:
Matthew Barry
2020-09-10 17:52:04 -05:00
committed by Mateusz Pusz
parent 20f3aba256
commit 4120fd408b

View File

@@ -39,7 +39,7 @@ struct microsecond : prefixed_unit<microsecond, micro, second> {};
struct millisecond : prefixed_unit<millisecond, milli, second> {};
struct minute : named_scaled_unit<minute, "min", no_prefix, ratio(60), second> {};
struct hour : named_scaled_unit<hour, "h", no_prefix, ratio(60), minute> {};
struct day : named_scaled_unit<hour, "d", no_prefix, ratio(24), hour> {};
struct day : named_scaled_unit<day, "d", no_prefix, ratio(24), hour> {};
struct dim_time : physical::dim_time<second> {};