mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
df72480395
Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
18 lines
471 B
C++
18 lines
471 B
C++
// Copyright 2020 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
#include <string>
|
|
|
|
namespace Common::TimeZone {
|
|
|
|
/// 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();
|
|
|
|
} // namespace Common::TimeZone
|