1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #2637 from Laserlicht/autosave

This commit is contained in:
Nordsoft91
2023-08-25 00:09:49 +04:00
committed by GitHub
10 changed files with 42 additions and 9 deletions

View File

@@ -22,6 +22,14 @@ namespace vstd
return s.str();
}
DLL_LINKAGE std::string getDateTimeISO8601Basic(std::time_t dt)
{
std::tm tm = *std::localtime(&dt);
std::stringstream s;
s << std::put_time(&tm, "%Y%m%dT%H%M%S");
return s.str();
}
}
VCMI_LIB_NAMESPACE_END