forked from dolphin-emu/dolphin
14 lines
296 B
C++
14 lines
296 B
C++
// Copyright 2024 Dolphin Emulator Project
|
|||
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <ctime>
|
||
|
|
#include <optional>
|
||
|
|
|
||
|
|
namespace Common
|
||
|
|
{
|
||
|
|
// Threadsafe and error-checking variant of std::localtime()
|
||
|
|
std::optional<std::tm> Localtime(std::time_t time);
|
||
|
|
} // Namespace Common
|