time_t mytime;
struct tm* timeinfo;
char buffer[128];
mytime = u64PTS / 1000000;
timeinfo = localtime(&mytime); // 转换
strftime(buffer,sizeof(buffer),"Now is %Y/%m/%d %H:%M:%S",timeinfo);
printf("%s\n", buffer);
time_t mytime;
struct tm* timeinfo;
char buffer[128];
mytime = u64PTS / 1000000;
timeinfo = localtime(&mytime); // 转换
strftime(buffer,sizeof(buffer),"Now is %Y/%m/%d %H:%M:%S",timeinfo);
printf("%s\n", buffer);