Remove unused static function systemtimeToMsecs()
See also commit 660aed3516f91c that removed the reverse method. Change-Id: Ib20c5be863ba6644485c581e3ece47a390ce467d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
269590516d
commit
eb921e6edc
@ -106,14 +106,6 @@ static QDate msecsToDate(qint64 msecs)
|
|||||||
return QDate::fromJulianDay(jd);
|
return QDate::fromJulianDay(jd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static qint64 systemtimeToMsecs(const SYSTEMTIME &systemtime)
|
|
||||||
{
|
|
||||||
FILETIME utcFileTime;
|
|
||||||
SystemTimeToFileTime(&systemtime, &utcFileTime);
|
|
||||||
ULONGLONG utcNSecs = (((ULONGLONG) utcFileTime.dwHighDateTime) << 32) + utcFileTime.dwLowDateTime;
|
|
||||||
return (utcNSecs - FILETIME_UNIX_EPOCH) / 10000;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool equalSystemtime(const SYSTEMTIME &t1, const SYSTEMTIME &t2)
|
static bool equalSystemtime(const SYSTEMTIME &t1, const SYSTEMTIME &t2)
|
||||||
{
|
{
|
||||||
return (t1.wYear == t2.wYear
|
return (t1.wYear == t2.wYear
|
||||||
|
Loading…
x
Reference in New Issue
Block a user