Holy vibecode Batman!
This commit is contained in:
1 parent
7db835e6d4
commit
1bc5199e3b
140 files changed
+11888
-9481
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include "time.hpp"
|
||||
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
|
||||
namespace anm2ed::util::time
|
||||
{
|
||||
std::string get(const char* format)
|
||||
{
|
||||
auto now = std::chrono::system_clock::now();
|
||||
auto time = std::chrono::system_clock::to_time_t(now);
|
||||
auto localTime = *std::localtime(&time);
|
||||
std::ostringstream timeString;
|
||||
timeString << std::put_time(&localTime, format);
|
||||
return timeString.str();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user