common: Add module to get the current time zone.

This commit is contained in:
bunnei 2020-05-11 17:51:26 -04:00
parent 988e42a3f5
commit 33441fa728
3 changed files with 68 additions and 0 deletions

17
src/common/time_zone.h Normal file
View file

@ -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