now = localtime(&t) mi da segmentation fault, cosa non va?codice:char temp[3000]; time_t t; struct tm *now; time(&t); printf("time_t t:%d\n", &t); now = localtime(&t); sprintf (temp, "'%04d-%02d-%02d %02d:%02d:%02d',", now->tm_year + 1900, now->tm_mon + 1, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec);