KD SOAP
1.10.0
|
#include <KDDateTime.h>
Inherits QDateTime.
Public Member Functions | |
KDDateTime (const QDateTime &) | |
operator QVariant () const | |
QString | timeZone () const |
void | setTimeZone (const QString &timeZone) |
QString | toDateString () const |
Static Public Member Functions | |
static KDDateTime | fromDateString (const QString &s) |
A DateTime class with an additional (optional) timezone.
As specified in https://www.w3.org/TR/xmlschema-2/#dateTime, the timezone can be empty (local time), "Z" (for UTC) or an offset from UTC like "+05:00" or "-03:00"
KDDateTime::KDDateTime | ( | const QDateTime & | rhs | ) |
Implicit constructor from a QDateTime. Sets the timeZone to "local", i.e. empty
KDDateTime::operator QVariant | ( | ) | const |
Converts the KDDateTime to QVariant, to avoid implicit conversion to base QDateTime.
QString KDDateTime::timeZone | ( | ) | const |
Returns the time zone set by setTimeZone.
void KDDateTime::setTimeZone | ( | const QString & | timeZone | ) |
Sets the timeZone. Can be empty, "Z", or an offset like "+05:00" or "-03:00".
|
static |
Creates a KDDateTime from a SOAP-compliant string representation.
QString KDDateTime::toDateString | ( | ) | const |
Returns a SOAP-compliant string representation of the date/time object.