diff options
| author | 2020-05-11 17:51:26 -0400 | |
|---|---|---|
| committer | 2020-05-11 17:51:26 -0400 | |
| commit | 33441fa728363998410e5d7f128cd3d26e0bb512 (patch) | |
| tree | aacb925820b6af99f853a3bd2e70d9c433976071 /src/common/time_zone.h | |
| parent | core: settings: Add a setting for time zone. (diff) | |
| download | yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.gz yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.xz yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.zip | |
common: Add module to get the current time zone.
Diffstat (limited to 'src/common/time_zone.h')
| -rw-r--r-- | src/common/time_zone.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/time_zone.h b/src/common/time_zone.h new file mode 100644 index 000000000..b7aa1bb10 --- /dev/null +++ b/src/common/time_zone.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | // Copyright 2020 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string> | ||
| 8 | |||
| 9 | namespace Common::TimeZone { | ||
| 10 | |||
| 11 | /// Gets the default timezone, i.e. "GMT" | ||
| 12 | std::string GetDefaultTimeZone(); | ||
| 13 | |||
| 14 | /// Gets the offset of the current timezone (from the default), in seconds | ||
| 15 | int GetCurrentOffsetSeconds(); | ||
| 16 | |||
| 17 | } // namespace Common::TimeZone | ||