summaryrefslogtreecommitdiffstats
path: root/src/common/time_zone.h
diff options
context:
space:
mode:
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