From 33441fa728363998410e5d7f128cd3d26e0bb512 Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 11 May 2020 17:51:26 -0400 Subject: common: Add module to get the current time zone. --- src/common/time_zone.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/common/time_zone.h (limited to 'src/common/time_zone.h') 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 + +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 -- cgit v1.2.3