The Life on php is much better...
Why here on this code FAKENOW & MAXWAITING are Same?
only MINWAITING is correct?..
on php:
$now=date(U);
$min= date(U) - 8;
$max= date(U) + 8; // future work ok & QT not...
uint now + 8 = 0 NULL
bool check = false;
uint FAKENOW = timer1.toTime_t();
const uint MINWAITING = FAKENOW - (uint)8;
/*delete timer1;*/
timer2.addSecs((60 * 60) * 2);
const uint MAXWAITING = timer2.toTime_t();
qDebug() << "#### now ...." << FAKENOW;
qDebug() << "#### utimax ...." << MAXWAITING;
qDebug() << "#### utimin ...." << MINWAITING;
/* MAX & NOW are same ??? */
/*
QString esqlogg = QString( "SELECT WEBNUMMER FROM OGGETTO WHERE WEBNUMMER >=%1 AND WEBNUMMER =<%2 " ).arg( QString::number(mintime) , QString::number(maxtime) );
*/
bool check = false;
QDateTime timer1;
uint FAKENOW = timer1.toTime_t();
const uint MINWAITING = FAKENOW - (uint)8;
/*delete timer1;*/
QDateTime timer2;
timer2.addSecs((60 * 60) * 2);
const uint MAXWAITING = timer2.toTime_t();
qDebug() << "#### now ...." << FAKENOW;
qDebug() << "#### utimax ...." << MAXWAITING;
qDebug() << "#### utimin ...." << MINWAITING;
/* MAX & NOW are same ??? */
/*
QString esqlogg = QString( "SELECT WEBNUMMER FROM OGGETTO WHERE WEBNUMMER >=%1 AND WEBNUMMER =<%2 " ).arg( QString::number(mintime) , QString::number(maxtime) );
*/
To copy to clipboard, switch view to plain text mode
Bookmarks