QDateTime Class Reference
The QDateTime class combines QDate and QTime into a single class.
(details)
(complete member list)
#include <qdatetm.h>
Public Members
- QDateTime ()
- QDateTime (const QDate&)
- QDateTime (const QDate&, const QTime&)
- bool isNull () const
- bool isValid () const
- QDate date () const
- QTime time () const
- void setDate (QDate date)
- void setTime (QTime time)
- QString toString () const
- QDateTime addDays (long days) const
- QDateTime addSecs (long secs) const
- long daysTo (const QDateTime&) const
- long secsTo (const QDateTime&) const
- bool operator== (const QDateTime& dt) const
- bool operator!= (const QDateTime& dt) const
- bool operator< (const QDateTime& dt) const
- bool operator<= (const QDateTime& dt) const
- bool operator> (const QDateTime& dt) const
- bool operator>= (const QDateTime& dt) const
Static Public Members
- QDateTime currentDateTime ()
Related Functions
(Note that these are not member functions.)
- QDataStream & operator<< (QDataStream &s, const QDateTime &dt)
- QDataStream & operator>> (QDataStream &s, QDateTime &dt)
The QDateTime class combines QDate and QTime into a single class.
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.
Member Function Documentation
Constructs a null datetime (i.e. null date and null time).
Constructs a datetime with date date and time time.
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.
Related Functions
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:
- qdatetm.h: 1995/03/15
- qdatetm.cpp: 1995/05/16
Generated at 04:27, 1995/05/20 by the webmaster at Troll Tech