| 1 | // Copyright 2024 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <ctime> |
| 7 | #include <optional> |
| 8 | |
| 9 | namespace Common |
| 10 | { |
| 11 | // Threadsafe and error-checking variant of std::localtime() |
| 12 | std::optional<std::tm> LocalTime(std::time_t time); |
| 13 | } // Namespace Common |