##// END OF EJS Templates
Added basic tests around Amda plugin Python wrapper...
Added basic tests around Amda plugin Python wrapper - Basic Amda parser test - Basic Amda Download test, it makes few range updates on a single variable with myAMDA as server. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r487:ff7ed2ba3c52
r1340:02cea38fdcb4
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.;
}