Files
o3de/Code/Tools/CrashHandler/Support/src/CrashSupport.cpp
T
2021-06-23 10:55:22 -07:00

30 lines
487 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// LY Crash Handler shared support
#include <CrashSupport.h>
#include <time.h>
namespace CrashHandler
{
std::string GetTimeString()
{
const int bufLen = 100;
char buffer[bufLen];
struct tm timeinfo;
GetTimeInfo(timeinfo);
strftime(buffer, bufLen, "%Y-%m-%dT%H:%M:%S", &timeinfo);
return buffer;
}
}