Home · All Classes · Modules

QDateTime Class Reference
[QtCore module]

Methods

Static Methods

Special Methods


Detailed Description

This class can be pickled.

A Python datetime object may be used whenever a QDateTime is expected.


Method Documentation

QDateTime.__init__ (self)

QDateTime.__init__ (self, QDateTime)

QDateTime.__init__ (self, QDate)

QDateTime.__init__ (self, QDate, QTime, Qt.TimeSpec timeSpec = Qt.LocalTime)

QDateTime.__init__ (self, int y, int m, int d, int h, int m, int s = 0, int msec = 0, int timeSpec = 0)

QDateTime QDateTime.addDays (self, int)

QDateTime QDateTime.addMonths (self, int)

QDateTime QDateTime.addMSecs (self, int)

QDateTime QDateTime.addSecs (self, int)

QDateTime QDateTime.addYears (self, int)

QDateTime QDateTime.currentDateTime ()

QDateTime QDateTime.currentDateTimeUtc ()

int QDateTime.currentMSecsSinceEpoch ()

QDate QDateTime.date (self)

int QDateTime.daysTo (self, QDateTime)

QDateTime QDateTime.fromMSecsSinceEpoch (int msecs)

QDateTime QDateTime.fromString (QString, Qt.DateFormat format = Qt.TextDate)

QDateTime QDateTime.fromString (QString, QString)

QDateTime QDateTime.fromTime_t (int)

bool QDateTime.isNull (self)

bool QDateTime.isValid (self)

int QDateTime.msecsTo (self, QDateTime)

int QDateTime.secsTo (self, QDateTime)

QDateTime.setDate (self, QDate)

QDateTime.setMSecsSinceEpoch (self, int msecs)

QDateTime.setTime (self, QTime)

QDateTime.setTime_t (self, int)

QDateTime.setTimeSpec (self, Qt.TimeSpec)

QTime QDateTime.time (self)

Qt.TimeSpec QDateTime.timeSpec (self)

QDateTime QDateTime.toLocalTime (self)

int QDateTime.toMSecsSinceEpoch (self)

datetime.datetime QDateTime.toPyDateTime (self)

QString QDateTime.toString (self, Qt.DateFormat format = Qt.TextDate)

QString QDateTime.toString (self, QString)

int QDateTime.toTime_t (self)

QDateTime QDateTime.toTimeSpec (self, Qt.TimeSpec)

QDateTime QDateTime.toUTC (self)

int QDateTime.__bool__ (self)

bool QDateTime.__eq__ (self, QDateTime)

bool QDateTime.__ge__ (self, QDateTime)

bool QDateTime.__gt__ (self, QDateTime)

int QDateTime.__hash__ (self)

bool QDateTime.__le__ (self, QDateTime)

bool QDateTime.__lt__ (self, QDateTime)

bool QDateTime.__ne__ (self, QDateTime)

str QDateTime.__repr__ (self)


PyQt 4.8 for X11Copyright © Riverbank Computing Ltd and Nokia 2010Qt 4.7.0