feat: now "7 days" will be created for std::chrono::weeks instead of a quantity in seconds
This commit is contained in:
1 parent
1d822d0ea4
commit
af26c48795
1 file changed
+2
@@ -52,6 +52,8 @@ template<typename Period>
|
||||
return hour;
|
||||
else if constexpr (is_same_v<Period, std::chrono::days::period>)
|
||||
return day;
|
||||
else if constexpr (is_same_v<Period, std::chrono::weeks::period>)
|
||||
return mag<7> * day;
|
||||
else
|
||||
return mag<ratio{Period::num, Period::den}> * second;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user