QDate Class Reference


The QDate class provides date functions. (details) (complete member list)

#include <qdatetm.h>

Public Members

Static Public Members

Static Protected Members

Related Functions

(Note that these are not member functions.)

Detailed Description

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

QDate::QDate ()

Constructs a null date. Null dates are invalid.

bool QDate::isNull () const

Returns TRUE if the date is null.

See also: isValid().


Related Functions

QDataStream & operator<< (QDataStream &s, const QDate &d)

Writes the date d to the stream s and returns a reference to s.

QDataStream & operator>> (QDataStream &s, QDate &d)

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:


Generated at 04:27, 1995/05/20 by the webmaster at Troll Tech