The QDateTime class combines QDate and QTime into a single class. (details) (complete member list)
#include <qdatetm.h>
QDateTime provides high precision date and time functions since it can work with all dates since September 14. 1752, with the resolution up to a microsecond.
Constructs a null datetime (i.e. null date and null time).
Constructs a datetime with date date and null time (00:00:00.000).
Constructs a datetime with date date and time time.
Returns the datetime plus ndays days.
Returns the datetime plus nsecs seconds.
Returns the current datetime.
See also: QDate::currentDate() and QTime::currentTime().
Returns the number of days between this datetime and dt.
Returns the TRUE if this datetime is not equal to dt, otherwise FALSE.
Returns the TRUE if this datetime is before dt, otherwise FALSE.
Returns the TRUE if this datetime is before or equal to dt, otherwise FALSE.
Returns the TRUE if this datetime is equal to dt, otherwise FALSE.
Returns the TRUE if this datetime is after dt, otherwise FALSE.
Returns the TRUE if this datetime is equal to or after dt, otherwise FALSE.
Returns the number of seconds between this datetime and dt.
Returns the datetime as a string. The string format is "Sat May 20 1995 03:40:13".
Writes the datetime dt to the stream s and returns a reference to s.
Reads the datetime dt from the stream s and returns a reference to s.
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: