diff options
| author | 2020-05-12 18:44:07 -0400 | |
|---|---|---|
| committer | 2020-05-12 18:44:07 -0400 | |
| commit | bba54e1880bd70d634797052d78359e30ec79acd (patch) | |
| tree | 27d598aa2ad461f0668702d59abb5d61b3ff5bd0 /src/common/time_zone.h | |
| parent | hle: service: time_zone_manager: Use current time zone setting. (diff) | |
| download | yuzu-bba54e1880bd70d634797052d78359e30ec79acd.tar.gz yuzu-bba54e1880bd70d634797052d78359e30ec79acd.tar.xz yuzu-bba54e1880bd70d634797052d78359e30ec79acd.zip | |
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 b7aa1bb10..945daa09c 100644 --- a/src/common/time_zone.h +++ b/src/common/time_zone.h | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <chrono> | ||
| 7 | #include <string> | 8 | #include <string> |
| 8 | 9 | ||
| 9 | namespace Common::TimeZone { | 10 | namespace Common::TimeZone { |
| @@ -12,6 +13,6 @@ namespace Common::TimeZone { | |||
| 12 | std::string GetDefaultTimeZone(); | 13 | std::string GetDefaultTimeZone(); |
| 13 | 14 | ||
| 14 | /// Gets the offset of the current timezone (from the default), in seconds | 15 | /// Gets the offset of the current timezone (from the default), in seconds |
| 15 | int GetCurrentOffsetSeconds(); | 16 | std::chrono::seconds GetCurrentOffsetSeconds(); |
| 16 | 17 | ||
| 17 | } // namespace Common::TimeZone | 18 | } // namespace Common::TimeZone |