diff options
Diffstat (limited to 'src/common/time_zone.h')
| -rw-r--r-- | src/common/time_zone.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/common/time_zone.h b/src/common/time_zone.h new file mode 100644 index 000000000..9f5939ca5 --- /dev/null +++ b/src/common/time_zone.h | |||
| @@ -0,0 +1,18 @@ | |||
| 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 <chrono> | ||
| 8 | #include <string> | ||
| 9 | |||
| 10 | namespace Common::TimeZone { | ||
| 11 | |||
| 12 | /// Gets the default timezone, i.e. "GMT" | ||
| 13 | [[nodiscard]] std::string GetDefaultTimeZone(); | ||
| 14 | |||
| 15 | /// Gets the offset of the current timezone (from the default), in seconds | ||
| 16 | [[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds(); | ||
| 17 | |||
| 18 | } // namespace Common::TimeZone | ||