philwinder
11th March 2009, 14:01
Hi,
Using something like:
qDebug() << QString::number( QDateTime(QDate(11,3,9),QTime(13,59,30).toTime_t() );
looks nothing like a QDateTime::currentDateTime().toTime_t(), and when trying to convert it back to a QDateTime, does not retrieve the correct information. What am I doing wrong?
Using something like:
qDebug() << QString::number( QDateTime(QDate(11,3,9),QTime(13,59,30).toTime_t() );
looks nothing like a QDateTime::currentDateTime().toTime_t(), and when trying to convert it back to a QDateTime, does not retrieve the correct information. What am I doing wrong?