16#ifndef QGSDATETIMESTATISTICALSUMMARY_H
17#define QGSDATETIMESTATISTICALSUMMARY_H
25#include <QVariantList>
81 void calculate(
const QVariantList &values );
96 void addValue(
const QVariant &value );
115 int count()
const {
return mCount; }
135 QDateTime
min()
const {
return mMin; }
140 QDateTime
max()
const {
return mMax; }
158 QSet< QDateTime > mValues;
164 void testDateTime(
const QDateTime &dateTime,
bool isNull );
QFlags< DateTimeStatistic > DateTimeStatistics
Statistics to be calculated for date/time values.
DateTimeStatistic
Available date/time statistics.
QgsDateTimeStatisticalSummary(Qgis::DateTimeStatistics stats=Qgis::DateTimeStatistic::All)
Constructor for QgsDateTimeStatisticalSummary.
QDateTime min() const
Returns the minimum (earliest) non-null datetime value.
Qgis::DateTimeStatistics statistics() const
Returns flags which specify which statistics will be calculated.
int count() const
Returns the calculated count of values.
int countMissing() const
Returns the number of missing (null) datetime values.
int countDistinct() const
Returns the number of distinct datetime values.
void setStatistics(Qgis::DateTimeStatistics stats)
Sets flags which specify which statistics will be calculated.
QSet< QDateTime > distinctValues() const
Returns the set of distinct datetime values.
QDateTime max() const
Returns the maximum (latest) non-null datetime value.
A representation of the interval between two datetime values.