나는 성공하지 않고 현재 시간을 TimeStamp로 가져 오려고합니다.현재 TimeStamp를 얻는 방법?
이QDateTime setTime = QDateTime::fromString (QString("1970-07-18T14:15:09"), Qt::ISODate);
QDateTime current = QDateTime::currentDateTime();
uint msecs = setTime.time().msecsTo(current.time());
return QString::number(msecs);
출력은
Sunday, January 25th 1970, 03:17:35 (GMT)
타임 스탬프는 정확히 무엇을 의미합니까? 예상되는 출력을 제공하십시오. – chalup
유닉스 시간 == 타임 스탬프 – user63898