time_zone.h 452 B

1234567891011121314151617
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <chrono>
  5. #include <string>
  6. namespace Common::TimeZone {
  7. /// Gets the default timezone, i.e. "GMT"
  8. [[nodiscard]] std::string GetDefaultTimeZone();
  9. /// Gets the offset of the current timezone (from the default), in seconds
  10. [[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();
  11. } // namespace Common::TimeZone