>>> 此贴的回复 >> 多用用man 手册 man strftime 里面说的很详细了.
>>> 此贴的回复 >> time_t t1,t3; t3 = time(&t1); struct tm *t2; t2 = gmtime(&t1);
char buf3[13] = ""; strftime(buf3, sizeof(buf3),"%x",t2);