#include<time.h> //头文件 unsigned int timeLen; struct timespec tp; struct tm timeBuffer; time_t nowSec;