summaryrefslogtreecommitdiffstats
path: root/src/common/time_zone.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-11 23:51:26 +0200
committerbunnei <bunneidev@gmail.com>2020-05-11 23:51:26 +0200
commit33441fa728363998410e5d7f128cd3d26e0bb512 (patch)
treeaacb925820b6af99f853a3bd2e70d9c433976071 /src/common/time_zone.h
parentcore: settings: Add a setting for time zone. (diff)
downloadyuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar
yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.gz
yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.bz2
yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.lz
yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.xz
yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.tar.zst
yuzu-33441fa728363998410e5d7f128cd3d26e0bb512.zip
Diffstat (limited to 'src/common/time_zone.h')
-rw-r--r--src/common/time_zone.h17
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 @@
+// Copyright 2020 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <string>
+
+namespace Common::TimeZone {
+
+/// Gets the default timezone, i.e. "GMT"
+std::string GetDefaultTimeZone();
+
+/// Gets the offset of the current timezone (from the default), in seconds
+int GetCurrentOffsetSeconds();
+
+} // namespace Common::TimeZone