2020-05-12 00:51:26 +03:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-05-13 01:44:07 +03:00
|
|
|
#include <chrono>
|
2020-05-12 00:51:26 +03:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Common::TimeZone {
|
|
|
|
|
|
|
|
/// Gets the default timezone, i.e. "GMT"
|
2020-08-14 16:38:45 +03:00
|
|
|
[[nodiscard]] std::string GetDefaultTimeZone();
|
2020-05-12 00:51:26 +03:00
|
|
|
|
|
|
|
/// Gets the offset of the current timezone (from the default), in seconds
|
2020-08-14 16:38:45 +03:00
|
|
|
[[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();
|
2020-05-12 00:51:26 +03:00
|
|
|
|
|
|
|
} // namespace Common::TimeZone
|