QDate Class Reference
The QDate class provides date functions.
(details)
(complete member list)
#include <qdatetm.h>
Public Members
- QDate ()
- QDate (int y, int m, int d)
- bool isNull () const
- bool isValid () const
- int year () const
- int month () const
- int day () const
- int dayOfWeek () const
- int dayOfYear () const
- int daysInMonth () const
- int daysInYear () const
- virtual const char* monthName (int month) const
- virtual const char* dayName (int weekday) const
- QString toString () const
- bool setYMD (int y, int m, int d)
- QDate addDays (long days) const
- long daysTo (const QDate&) const
- bool operator== (const QDate& d) const
- bool operator!= (const QDate& d) const
- bool operator< (const QDate& d) const
- bool operator<= (const QDate& d) const
- bool operator> (const QDate& d) const
- bool operator>= (const QDate& d) const
Static Public Members
- QDate currentDate ()
- bool isValid (int y, int m, int d)
- bool leapYear (int year)
Static Protected Members
- ulong greg2jul (int y, int m, int d)
- void jul2greg (ulong jd, int& y, int& m, int& d)
Related Functions
(Note that these are not member functions.)
- QDataStream & operator<< (QDataStream &s, const QDate &d)
- QDataStream & operator>> (QDataStream &s, QDate &d)
The QDate class provides date functions.
The QDate is based on the Gregorian (modern western)
calendar. England adopted the Gregorian calendar on September 14th
1752, which is the earliest date that is supported by QDate. Using
earlier dates will give undefined results. Some countries adopted
the Gregorian calendar later than England, thus the week dat of
early dates might be incorrect for these countries (but correct for
England). The end of time is reached around 8000AD, by which time we
expect Qt to be obsolete.
Member Function Documentation
Constructs a null date. Null dates are invalid.
Returns TRUE if the date is null.
See also: isValid().
Related Functions
Writes the date d to the stream s and returns a reference to s.
Reads the date d 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