I'm trying to make strftime accept a std::string.
I want to know if it's possible or not to do this conversion!
OBS I want to alter only strftime
In the example I did below, he accepts, but is returning an empty value
Code:#include <iostream>
#include <string>
int main() {
time_t Capture = time(0);
std::string Data_Hora;
strftime((char*)Data_Hora.c_str(), 20, "%d/%m/%Y %T", localtime(&Capture)); // 25/05/2020 12:51:00
std::cout << Data_Hora;
}