diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-12 18:44:07 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-05-12 18:44:07 -0400 |
commit | bba54e1880bd70d634797052d78359e30ec79acd (patch) | |
tree | 27d598aa2ad461f0668702d59abb5d61b3ff5bd0 /src/common/time_zone.h | |
parent | 3c8cd62b0db115a4812d8de81b70af72565bbdd7 (diff) |
time_zone: Use std::chrono::seconds for strong typing.
Diffstat (limited to 'src/common/time_zone.h')
-rw-r--r-- | src/common/time_zone.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/time_zone.h b/src/common/time_zone.h index b7aa1bb108..945daa09ce 100644 --- a/src/common/time_zone.h +++ b/src/common/time_zone.h @@ -4,6 +4,7 @@ #pragma once +#include <chrono> #include <string> namespace Common::TimeZone { @@ -12,6 +13,6 @@ namespace Common::TimeZone { std::string GetDefaultTimeZone(); /// Gets the offset of the current timezone (from the default), in seconds -int GetCurrentOffsetSeconds(); +std::chrono::seconds GetCurrentOffsetSeconds(); } // namespace Common::TimeZone |