mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
common: Add module to get the current time zone.
This commit is contained in:
parent
8588ac0645
commit
7aadcb796c
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