diff options
author | bunnei <bunneidev@gmail.com> | 2023-06-13 22:28:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 22:28:45 +0200 |
commit | 698a3eda508ca0d3220452854b3ec977d7be5ea2 (patch) | |
tree | fc71df2feda7bfed6f686e3f7aa0fa8629aebc5d /src/common/time_zone.h | |
parent | Merge pull request #10760 from FearlessTobi/translations (diff) | |
parent | tz_manager: Fix comparison to wrong integer (diff) | |
download | yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.tar yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.tar.gz yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.tar.bz2 yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.tar.lz yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.tar.xz yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.tar.zst yuzu-698a3eda508ca0d3220452854b3ec977d7be5ea2.zip |
Diffstat (limited to 'src/common/time_zone.h')
-rw-r--r-- | src/common/time_zone.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/time_zone.h b/src/common/time_zone.h index 99cae6ef2..f574d5c04 100644 --- a/src/common/time_zone.h +++ b/src/common/time_zone.h @@ -3,15 +3,21 @@ #pragma once +#include <array> #include <chrono> #include <string> namespace Common::TimeZone { +[[nodiscard]] const std::array<const char*, 46>& GetTimeZoneStrings(); + /// Gets the default timezone, i.e. "GMT" [[nodiscard]] std::string GetDefaultTimeZone(); /// Gets the offset of the current timezone (from the default), in seconds [[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds(); +/// Searches time zone offsets for the closest offset to the system time zone +[[nodiscard]] std::string FindSystemTimeZone(); + } // namespace Common::TimeZone |