##// END OF EJS Templates
Updates format of AMDA json and uses it in Sciqlop...
Updates format of AMDA json and uses it in Sciqlop This new format: - adds a data used to determinate if we expect to retrieve a vector or a scalar (for parameters and components) - duplicates useful data (unit, mission name) directly in parameters and components

File last commit:

r487:ff7ed2ba3c52
r522:328e3d1c7289
Show More
DateUtils.h
19 lines | 521 B | text/x-c | CLexer
Alexandre Leroux
Creates DateUtils to convert datetime to secs and secs to datetime
r487 #ifndef SCIQLOP_DATEUTILS_H
#define SCIQLOP_DATEUTILS_H
#include "CoreGlobal.h"
#include <QDateTime>
/**
* Utility class with methods for dates
*/
struct SCIQLOP_CORE_EXPORT DateUtils {
/// Converts seconds (since epoch) to datetime. By default, the datetime is in UTC
static QDateTime dateTime(double secs, Qt::TimeSpec timeSpec = Qt::UTC) noexcept;
/// Converts datetime to seconds since epoch
static double secondsSinceEpoch(const QDateTime &dateTime) noexcept;
};
#endif // SCIQLOP_DATEUTILS_H