##// END OF EJS Templates
- Changes the way to retrieve unit in AMDA result file: The generated header in the result file differs from the first version...
- Changes the way to retrieve unit in AMDA result file: The generated header in the result file differs from the first version - Changes how to handle comment lines in file: Some comment lines do not have '#', so we now consider comments to end when the header of the data has been reached

File last commit:

r487:ff7ed2ba3c52
r774:c9e284499782
Show More
DateUtils.h
19 lines | 521 B | text/x-c | CLexer
#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