diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-11 17:51:26 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-05-11 17:51:26 -0400 |
commit | 33441fa728363998410e5d7f128cd3d26e0bb512 (patch) | |
tree | aacb925820b6af99f853a3bd2e70d9c433976071 /src/common/time_zone.h | |
parent | 988e42a3f57e427e4f91172086ccc8a9a52f73eb (diff) |
common: Add module to get the current time zone.
Diffstat (limited to 'src/common/time_zone.h')
-rw-r--r-- | src/common/time_zone.h | 17 |
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 0000000000..b7aa1bb108 --- /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 |