2022-04-23 03:59:50 -05:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-05-11 16:51:26 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-05-12 17:44:07 -05:00
|
|
|
#include <chrono>
|
2020-05-11 16:51:26 -05:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Common::TimeZone {
|
|
|
|
|
|
|
|
/// Gets the default timezone, i.e. "GMT"
|
2020-08-14 08:38:45 -05:00
|
|
|
[[nodiscard]] std::string GetDefaultTimeZone();
|
2020-05-11 16:51:26 -05:00
|
|
|
|
|
|
|
/// Gets the offset of the current timezone (from the default), in seconds
|
2020-08-14 08:38:45 -05:00
|
|
|
[[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();
|
2020-05-11 16:51:26 -05:00
|
|
|
|
|
|
|
} // namespace Common::TimeZone
|