##// END OF EJS Templates
Updates access to y-axis properties of the data series (2)...
Updates access to y-axis properties of the data series (2) Uses iterators instead of y-axis at() method to get access to the data Adds access in data series iterator

File last commit:

r487:ff7ed2ba3c52
r1031:958f5923ee65
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.;
}