如题,将时间戳time_t 转换为date类型村咋在sqlite中,应该怎么转呢?
sqlite> SELECT datetime(1377168853, 'unixepoch', 'localtime');
time_t mm=time(NULL);tm *gps_tm=new tm;localtime_s(gps_tm,&mm);char strTime[100];strftime(strTime,100,"%Y-%m-%d %H:%M:%S",gps_tm);