common: Add module to get the current time zone.
This commit is contained in:
parent
988e42a3f5
commit
33441fa728
3 changed files with 68 additions and 0 deletions
17
src/common/time_zone.h
Normal file
17
src/common/time_zone.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue