Implements the value instance of the xs:gYearMonth
type.
More...
#include <qgyearmonth_p.h>
Implements the value instance of the xs:gYearMonth
type.
- Author
- Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com
Definition at line 69 of file qgyearmonth_p.h.
◆ Ptr
◆ GYearMonth()
GYearMonth::GYearMonth |
( |
const QDateTime & |
dateTime | ) |
|
|
protected |
◆ fromDateTime()
Definition at line 85 of file qgyearmonth.cpp.
Referenced by QPatternist::AbstractDateTimeToGYearMonthCaster::castFrom().
int month() const
Returns the number corresponding to the month of this date, using the following convention: ...
The QDate class provides date functions.
GYearMonth(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 qgyearmonth.cpp.
Referenced by QPatternist::StringToGYearMonthCaster::castFrom().
56 static const CaptureTable captureTable(
64 "(?:(\\+|-)(\\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)
GYearMonth(const QDateTime &dateTime)
The QDateTime class provides date and time functions.
◆ stringValue()
QString GYearMonth::stringValue |
( |
| ) |
const |
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 93 of file qgyearmonth.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: