##// END OF EJS Templates
Creates iterator for QCPColorMap...
Creates iterator for QCPColorMap Iterators will be used to call the method of computing the thresholds on the data of a QCPColorMap

File last commit:

r487:ff7ed2ba3c52
r1058:d684e1205d9a
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.;
}