Implements the value instance of the xs:gYear
type.
More...
#include <qgyear_p.h>
Implements the value instance of the xs:gYear
type.
- Author
- Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com
Definition at line 69 of file qgyear_p.h.
◆ Ptr
◆ GYear()
◆ fromDateTime()
Definition at line 83 of file qgyear.cpp.
Referenced by QPatternist::AbstractDateTimeToGYearCaster::castFrom().
The QDate class provides date functions.
GYear(const QDateTime &dateTime)
static void copyTimeSpec(const QDateTime &from, QDateTime &to)
Makes the QDateTime::timeSpec() and QDateTime::zoneOffset() of ot * consistent to from...
QDate date() const
Returns the date part of the datetime.
The QDateTime class provides date and time functions.
int year() const
Returns the year of this date.
◆ fromLexical()
Creates an instance from the lexical representation string
.
Definition at line 54 of file qgyear.cpp.
Referenced by QPatternist::StringToGYearCaster::castFrom().
56 static const CaptureTable captureTable(
62 "(?:(\\+|-)(\\d{2}):(\\d{2})|(Z))?" The QRegExp class provides pattern matching using regular expressions.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static QDateTime create(AtomicValue::Ptr &errorMessage, const QString &lexicalSource, const CaptureTable &captTable)
GYear(const QDateTime &dateTime)
The QDateTime class provides date and time functions.
◆ stringValue()
QString GYear::stringValue |
( |
| ) |
const |
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 91 of file qgyear.cpp.
const QDateTime m_dateTime
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QString toString(Qt::DateFormat f=Qt::TextDate) const
Returns the datetime as a string in the format given.
QString zoneOffsetToString() const
◆ type()
◆ CommonValues
The documentation for this class was generated from the following files: