16#ifndef QGSDATETIMESTATISTICALSUMMARY_H
17#define QGSDATETIMESTATISTICALSUMMARY_H
25#include <QVariantList>
80 void calculate(
const QVariantList &values );
95 void addValue(
const QVariant &value );
114 int count()
const {
return mCount; }
134 QDateTime
min()
const {
return mMin; }
139 QDateTime
max()
const {
return mMax; }
156 QSet< QDateTime > mValues;
162 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.