##// END OF EJS Templates
Remove unused pending request of worker since it's already in the VC....
Remove unused pending request of worker since it's already in the VC. Fix bug with progress asynchrone computation

File last commit:

r1369:b20dcec1c57b
r1395:b136e07f06a8
Show More
DateUtils.h
23 lines | 702 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>
Fix bug time precision with catalogue
r1369 /// Format for datetimes
const auto DATETIME_FORMAT = QStringLiteral("dd/MM/yyyy \nhh:mm:ss:zzz");
const auto DATETIME_FORMAT_ONE_LINE = QStringLiteral("dd/MM/yyyy hh:mm:ss:zzz");
Alexandre Leroux
Creates DateUtils to convert datetime to secs and secs to datetime
r487 /**
* 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