time_zone.h 471 B

123456789101112131415161718
  1. // Copyright 2020 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <chrono>
  6. #include <string>
  7. namespace Common::TimeZone {
  8. /// Gets the default timezone, i.e. "GMT"
  9. [[nodiscard]] std::string GetDefaultTimeZone();
  10. /// Gets the offset of the current timezone (from the default), in seconds
  11. [[nodiscard]] std::chrono::seconds GetCurrentOffsetSeconds();
  12. } // namespace Common::TimeZone