##// END OF EJS Templates
Handles desynchronisation when removing variable from a graph (1)...
Handles desynchronisation when removing variable from a graph (1) - Prevents the zone widget that a variable will be removed from graph, to call desynchronisation in the Variable controller

File last commit:

r487:ff7ed2ba3c52
r737:e5aabf0f62fb
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.;
}