#include
STD:: myTime da corda = “1438”;
time_t agora = tempo (0);
now_tm do tm* do 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;
alvo do time_t = mktime (now_tm);
timestamp do carvão animal [32] = "";
strftime (timestamp, 32, “%b %d %Y %I: %M: %S 000% p”, gmtime (&target));
STD:: cout <>
|