#include
std:: myTime della stringa = “1438„;
time_t ora = tempo (0);
now_tm del tm* dello struct = localtime (&now);
now_tm->tm_hour = atoi (myTime.substr (0, 2).c_str ());
now_tm->tm_min = atoi (myTime.substr (2, 2).c_str ());
now_tm->tm_sec = 0;
obiettivo del time_t = mktime (now_tm);
timestamp del carbone [32] = "";
strftime (timestamp, 32, “%b %d %Y %I: %M: %S 000% p„, gmtime (&target));
std:: cout <>
|