QGIS API Documentation  3.8.0-Zanzibar (11aff65)
Functions
qgsinterval.cpp File Reference
#include "qgsinterval.h"
#include "qgis.h"
#include <QString>
#include <QStringList>
#include <QMap>
#include <QObject>
#include <QDebug>
#include <QDateTime>
Include dependency graph for qgsinterval.cpp:

Go to the source code of this file.

Functions

QDateTime operator+ (const QDateTime &start, QgsInterval interval)
 
QgsInterval operator- (const QDateTime &dt1, const QDateTime &dt2)
 Returns the interval between two datetimes. More...
 
QgsInterval operator- (QDate date1, QDate date2)
 Returns the interval between two dates. More...
 
QgsInterval operator- (QTime time1, QTime time2)
 Returns the interval between two times. More...
 
QDebug operator<< (QDebug dbg, const QgsInterval &interval)
 Debug string representation of interval. More...
 

Function Documentation

◆ operator+()

QDateTime operator+ ( const QDateTime &  start,
QgsInterval  interval 
)

Definition at line 124 of file qgsinterval.cpp.

◆ operator-() [1/3]

QgsInterval operator- ( const QDateTime &  datetime1,
const QDateTime &  datetime2 
)

Returns the interval between two datetimes.

Parameters
datetime1start datetime
datetime2datetime to subtract, ie subtract datetime2 from datetime1
Note
not available in Python bindings
Since
QGIS 2.16

Definition at line 118 of file qgsinterval.cpp.

◆ operator-() [2/3]

QgsInterval operator- ( QDate  date1,
QDate  date2 
)

Returns the interval between two dates.

Parameters
date1start date
date2date to subtract, ie subtract date2 from date1
Note
not available in Python bindings
Since
QGIS 2.16

Definition at line 129 of file qgsinterval.cpp.

◆ operator-() [3/3]

QgsInterval operator- ( QTime  time1,
QTime  time2 
)

Returns the interval between two times.

Parameters
time1start time
time2time to subtract, ie subtract time2 from time1
Note
not available in Python bindings
Since
QGIS 2.16

Definition at line 135 of file qgsinterval.cpp.

◆ operator<<()

QDebug operator<< ( QDebug  dbg,
const QgsInterval interval 
)

Debug string representation of interval.

Definition at line 109 of file qgsinterval.cpp.