##// END OF EJS Templates
Next range of a variable synchronized is now computed using:...
Next range of a variable synchronized is now computed using: its current range the current range of the key reference variable the next range requested of the key reference variable

File last commit:

r487:ff7ed2ba3c52
r627:4e5df98215ef
Show More
DateUtils.cpp
13 lines | 383 B | text/x-c | CppLexer
#include "Common/DateUtils.h"
QDateTime DateUtils::dateTime(double secs, Qt::TimeSpec timeSpec) noexcept
{
// Uses msecs to be Qt 4 compatible
return QDateTime::fromMSecsSinceEpoch(secs * 1000., timeSpec);
}
double DateUtils::secondsSinceEpoch(const QDateTime &dateTime) noexcept
{
// Uses msecs to be Qt 4 compatible
return dateTime.toMSecsSinceEpoch() / 1000.;
}