time_zone: Use std::chrono::seconds for strong typing.

This commit is contained in:
bunnei 2020-05-12 18:44:07 -04:00
parent f42b9c0a85
commit 053399a553
3 changed files with 5 additions and 4 deletions

View file

@ -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