| QGIS API Documentation
    3.22.4-Białowieża (ce8e65e95e)
    | 
#include <QVariant>#include "qgis_sip.h"#include "qgis_core.h"#include "qgsunittypes.h"#include "qgis.h"

Go to the source code of this file.
| Classes | |
| class | QgsInterval | 
| A representation of the interval between two datetime values.  More... | |
| Functions | |
| QDateTime CORE_EXPORT | operator+ (const QDateTime &start, const QgsInterval &interval) | 
| Adds an interval to a datetime.  More... | |
| QgsInterval CORE_EXPORT | operator- (const QDateTime &datetime1, const QDateTime &datetime2) | 
| Returns the interval between two datetimes.  More... | |
| QgsInterval CORE_EXPORT | operator- (QDate date1, QDate date2) | 
| Returns the interval between two dates.  More... | |
| QgsInterval CORE_EXPORT | operator- (QTime time1, QTime time2) | 
| Returns the interval between two times.  More... | |
| QDebug CORE_EXPORT | operator<< (QDebug dbg, const QgsInterval &interval) | 
| Debug string representation of interval.  More... | |
| QDateTime CORE_EXPORT operator+ | ( | const QDateTime & | start, | 
| const QgsInterval & | interval | ||
| ) | 
Adds an interval to a datetime.
| start | initial datetime | 
| interval | interval to add | 
Definition at line 291 of file qgsinterval.cpp.
| QgsInterval CORE_EXPORT operator- | ( | const QDateTime & | datetime1, | 
| const QDateTime & | datetime2 | ||
| ) | 
Returns the interval between two datetimes.
| datetime1 | start datetime | 
| datetime2 | datetime to subtract, ie subtract datetime2 from datetime1 | 
Definition at line 285 of file qgsinterval.cpp.
| QgsInterval CORE_EXPORT operator- | ( | QDate | date1, | 
| QDate | date2 | ||
| ) | 
Returns the interval between two dates.
| date1 | start date | 
| date2 | date to subtract, ie subtract date2 from date1 | 
Definition at line 296 of file qgsinterval.cpp.
| QgsInterval CORE_EXPORT operator- | ( | QTime | time1, | 
| QTime | time2 | ||
| ) | 
Returns the interval between two times.
| time1 | start time | 
| time2 | time to subtract, ie subtract time2 from time1 | 
Definition at line 302 of file qgsinterval.cpp.
| QDebug CORE_EXPORT operator<< | ( | QDebug | dbg, | 
| const QgsInterval & | interval | ||
| ) | 
Debug string representation of interval.
Definition at line 276 of file qgsinterval.cpp.