##// END OF EJS Templates
Updates AMDA JSON file to handle spectrograms...
Updates AMDA JSON file to handle spectrograms - Sets "dataType" attribute to "spectrogram" for all products that have the "display_type" attribute set to "spectrogram" - Adds "server" attribute to spectrograms products to indicate that the server to use for these is the Amda test server

File last commit:

r487:ff7ed2ba3c52
r931:9b61a10c893b
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.;
}