2020-05-11 21:51:26 +00:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-05-12 22:44:07 +00:00
|
|
|
#include <chrono>
|
2020-05-11 21:51:26 +00:00
|
|
|
#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
|
2020-05-12 22:44:07 +00:00
|
|
|
std::chrono::seconds GetCurrentOffsetSeconds();
|
2020-05-11 21:51:26 +00:00
|
|
|
|
|
|
|
} // namespace Common::TimeZone
|