QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsinterval.cpp File Reference
#include "qgsinterval.h"
#include "qgsunittypes.h"
#include <QDateTime>
#include <QDebug>
#include <QMap>
#include <QObject>
#include <QRegularExpression>
#include <QString>
#include <QStringList>
Include dependency graph for qgsinterval.cpp:

Go to the source code of this file.

Functions

QDateTime operator+ (const QDateTime &start, const QgsInterval &interval)
 Adds an interval to a datetime.
QgsInterval operator- (QDate date1, QDate date2)
 Returns the interval between two dates.
QgsInterval operator- (QTime time1, QTime time2)
 Returns the interval between two times.
QDebug operator<< (QDebug dbg, const QgsInterval &interval)
 Debug string representation of interval.

Function Documentation

◆ operator+()

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

Adds an interval to a datetime.

Parameters
startinitial datetime
intervalinterval to add
Note
not available in Python bindings

Definition at line 319 of file qgsinterval.cpp.

◆ operator-() [1/2]

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

Definition at line 324 of file qgsinterval.cpp.

◆ operator-() [2/2]

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

Definition at line 330 of file qgsinterval.cpp.

◆ operator<<()

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

Debug string representation of interval.

Definition at line 300 of file qgsinterval.cpp.