/
githubmirror
/
yuzu
Обзор
Документация
Войти
/
githubmirror
/
yuzu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/common/time_zone.h
23 строки
668 B
lat9nq
common: Move system time zone string detection
05 июн 2023, 22:15
05 июн 2023, 22:15
3979c7d
Код
Авторство
О чём код?
// 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