QDebug operator<<( QDebug dbg, const QgsInterval &interval ) { if ( !interval.isValid() ) dbg.nospace() << "QgsInterval()"; else dbg.nospace() << "QgsInterval(" << interval.seconds() << ")"; return dbg.maybeSpace(); }
QDateTime operator+( const QDateTime &start, QgsInterval interval ) { return start.addMSecs( static_cast<qint64>( interval.seconds() * 1000.0 ) ); }