52 #ifndef Patternist_AbstractDateTime_H 53 #define Patternist_AbstractDateTime_H 115 const qint8 zoneOffsetSignP,
116 const qint8 zoneOffsetHourP,
117 const qint8 zoneOffsetMinuteP,
118 const qint8 zoneOffsetUTCSymbolP,
120 const qint8 monthP = -1,
121 const qint8 dayP = -1,
122 const qint8 hourP = -1,
123 const qint8 minutesP = -1,
124 const qint8 secondsP = -1,
125 const qint8 msecondsP = -1,
#define QT_END_NAMESPACE
This macro expands to.
Base class for classes implementing values related to time, date or both.
The QRegExp class provides pattern matching using regular expressions.
QString timeToString() const
const qint8 zoneOffsetHour
Due to strong interdependencies, this file contains the definitions for the classes Item...
QString dateToString() const
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
const QDateTime m_dateTime
The QDate class provides date functions.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
CaptureTable(const QRegExp &exp, const qint8 zoneOffsetSignP, const qint8 zoneOffsetHourP, const qint8 zoneOffsetMinuteP, const qint8 zoneOffsetUTCSymbolP, const qint8 yearP, const qint8 monthP=-1, const qint8 dayP=-1, const qint8 hourP=-1, const qint8 minutesP=-1, const qint8 secondsP=-1, const qint8 msecondsP=-1, const qint8 yearSignP=-1)
static void setUtcOffset(QDateTime &result, const ZoneOffsetParseResult zoResult, const int zoOffset)
static QDateTime create(AtomicValue::Ptr &errorMessage, const QString &lexicalSource, const CaptureTable &captTable)
bool isValid() const
Returns true if the regular expression is valid; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
AbstractDateTime(const QDateTime &dateTime)
const qint8 zoneOffsetMinute
Base class for all classes representing atomic values.
The QStringList class provides a list of strings.
Acts as a mapping table for AbstractDateTime::create() and describes where certain fields in a QRegEx...
The namespace for the internal API of QtXmlPatterns.
const QDateTime & toDateTime() const
static ZOTotal parseZoneOffset(ZoneOffsetParseResult &result, const QStringList &capts, const CaptureTable &captTable)
Parses the zone offset. All types use zone offsets.
const qint8 zoneOffsetSign
static void copyTimeSpec(const QDateTime &from, QDateTime &to)
Makes the QDateTime::timeSpec() and QDateTime::zoneOffset() of ot * consistent to from...
The QDateTime class provides date and time functions.
Represents an item in the XPath 2.0 Data Model.
static bool isRangeValid(const QDate &date, QString &message)
QString zoneOffsetToString() const
virtual Item fromValue(const QDateTime &dt) const
static QString serializeMSeconds(const MSecondProperty msecs)
const qint8 zoneOffsetUTCSymbol
QExplicitlySharedDataPointer< AbstractDateTime > Ptr