摘要:
1、QDateTime time = QDateTime::currentDateTime(); //获取当前时间 QString str = time.toString("yyyy-MM-dd"); //设置显示格式 2、int timeT = time.toTime_t(); //将当前时间转为时间戳 toTime_t()功能相反的是fromTime_t() 3、时间... 阅读全文
posted @ 2018-09-06 23:47
雪落梅藏
阅读(657)
评论(0)
推荐(0)

浙公网安备 33010602011771号