Is there any way to convert a time_t to a std::string with the format YYYY-MM-DD HH:MM:SS automatically while keeping the code portabl
time_t
std::string