chore: CRLF to LF

This commit is contained in:
smpn2
2022-12-16 23:18:35 +09:00
parent b7a60638a4
commit 6c914266d9
725 changed files with 131020 additions and 131020 deletions
+14 -14
View File
@@ -1,14 +1,14 @@
#include "logging.h"
std::string_view log_get_datetime() {
return log_get_datetime(time(nullptr));
}
std::string_view log_get_datetime(std::time_t now) {
static thread_local char buf[64];
// `localtime` on Windows is thread-safe
strftime(buf, sizeof(buf), "[%Y/%m/%d %X]", localtime(&now));
return buf;
}
#include "logging.h"
std::string_view log_get_datetime() {
return log_get_datetime(time(nullptr));
}
std::string_view log_get_datetime(std::time_t now) {
static thread_local char buf[64];
// `localtime` on Windows is thread-safe
strftime(buf, sizeof(buf), "[%Y/%m/%d %X]", localtime(&now));
return buf;
}