mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Utilities: Add custom _days chrono literal
This commit is contained in:
committed by
Peter Keresztes Schmidt
parent
796e2b32e0
commit
d5de96e46b
@@ -39,4 +39,9 @@ typedef std::chrono::system_clock::time_point SystemTimePoint;
|
||||
/// Makes std::chrono_literals globally available.
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
constexpr std::chrono::hours operator""_days(unsigned long long days)
|
||||
{
|
||||
return std::chrono::hours(days * 24h);
|
||||
}
|
||||
|
||||
#endif // _DURATION_H_
|
||||
|
||||
Reference in New Issue
Block a user