33 return QStringLiteral(
"DateTime" );
48 const bool fieldIsoFormat = config.value( QStringLiteral(
"field_iso_format" ),
false ).toBool();
49 const QString fieldFormat = config.value( QStringLiteral(
"field_format" ),
defaultFormat( field.
type() ) ).toString();
50 const QString displayFormat = config.value( QStringLiteral(
"display_format" ),
defaultFormat( field.
type() ) ).toString();
55 date = QDateTime::fromString( value.toString(), Qt::ISODate );
59 date = QDateTime::fromString( value.toString(), fieldFormat );
64 result = date.toString( displayFormat );
68 result = value.toString();
78 case QVariant::DateTime:
QgsField at(int i) const
Gets field at particular index (must be in range 0..N-1)
QgsFields fields() const override
Returns the list of fields of this layer.
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
Encapsulate a field in an attribute table or data source.
Represents a vector layer which manages a vector based data sets.