mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
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:
committed by
Mateusz Pusz
parent
20f3aba256
commit
4120fd408b
@@ -39,7 +39,7 @@ struct microsecond : prefixed_unit<microsecond, micro, second> {};
|
|||||||
struct millisecond : prefixed_unit<millisecond, milli, second> {};
|
struct millisecond : prefixed_unit<millisecond, milli, second> {};
|
||||||
struct minute : named_scaled_unit<minute, "min", no_prefix, ratio(60), 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 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> {};
|
struct dim_time : physical::dim_time<second> {};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user