diff --git a/core/include/Data/SqpDateTime.h b/core/include/Data/SqpDateTime.h index dc43dc1..c0f73c1 100644 --- a/core/include/Data/SqpDateTime.h +++ b/core/include/Data/SqpDateTime.h @@ -2,6 +2,10 @@ #define SCIQLOP_SQPDATETIME_H #include + +#include +#include + /** * @brief The SqpDateTime struct holds the information of time parameters */ @@ -22,6 +26,16 @@ struct SqpDateTime { } }; +inline QDebug operator<<(QDebug d, SqpDateTime obj) +{ + auto tendDateTimeStart = QDateTime::fromMSecsSinceEpoch(obj.m_TStart * 1000); + auto tendDateTimeEnd = QDateTime::fromMSecsSinceEpoch(obj.m_TEnd * 1000); + + // QDebug << "ts: " << tendDateTimeStart << " te: " << tendDateTimeEnd; + d << "ts: " << tendDateTimeStart << " te: " << tendDateTimeEnd; + return d; +} + // Required for using shared_ptr in signals/slots Q_DECLARE_METATYPE(SqpDateTime)