mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2025-02-19 01:15:45 +00:00
- In commit b3facaa6bb30cdc39f2b7d632fef1e3bfeee7785, the copyright header was updated to include "Citron Homebrew Project" across multiple files, regardless of whether any contributions were made. - This commit removes the incorrect attribution and reverts the copyright header to its previous state. - Copyright attribution should only be added when meaningful contributions have been made to the file. - This commit ensures proper compliance with copyright standards and maintains correct attribution to the respective contributors. - Special thanks to Tachi for pointing out the need for these corrections and ensuring that proper attribution practices are followed.
24 lines
668 B
C++
24 lines
668 B
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
#include <chrono>
|
|
#include <string>
|
|
|
|
namespace Common::TimeZone {
|
|
|
|
[[nodiscard]] const std::array<const char*, 46>& GetTimeZoneStrings();
|
|
|
|
/// Gets the default timezone, i.e. "GMT"
|
|
[[nodiscard]] std::string GetDefaultTimeZone();
|
|
|
|
/// Gets the offset of the current timezone (from the default), in seconds
|
|
[[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();
|
|
|
|
/// Searches time zone offsets for the closest offset to the system time zone
|
|
[[nodiscard]] std::string FindSystemTimeZone();
|
|
|
|
} // namespace Common::TimeZone
|