KD SOAP
 All Classes Functions Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions
KDDateTime Class Reference

#include <KDDateTime.h>

List of all members.

Public Member Functions

 KDDateTime (const QDateTime &)
QString timeZone () const
void setTimeZone (const QString &timeZone)
QString toDateString () const

Static Public Member Functions

static KDDateTime fromDateString (const QString &s)

Detailed Description

A DateTime class with an additional (optional) timezone.

As specified in http://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"


Constructor & Destructor Documentation

KDDateTime::KDDateTime ( const QDateTime &  rhs)

Implicit constructor from a QDateTime. Sets the timeZone to "local", i.e. empty


Member Function Documentation

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".

KDDateTime KDDateTime::fromDateString ( const QString &  s)
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.


The documentation for this class was generated from the following files:

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/