QDate
#include <QtCore/QDate>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QDate
Overview
Public Types Index
enum MonthNameType |
Public Functions Index
QDate () | |
QDate (int y, int m, int d) | |
QDate | addDays (int days) const |
QDate | addMonths (int months) const |
QDate | addYears (int years) const |
int | day () const |
int | dayOfWeek () const |
int | dayOfYear () const |
int | daysInMonth () const |
int | daysInYear () const |
int | daysTo (const QDate &) const |
void | getDate (int *year, int *month, int *day) |
bool | isNull () const |
bool | isValid () const |
int | month () const |
bool | operator!= (const QDate &other) const |
bool | operator< (const QDate &other) const |
bool | operator<= (const QDate &other) const |
bool | operator== (const QDate &other) const |
bool | operator> (const QDate &other) const |
bool | operator>= (const QDate &other) const |
bool | setDate (int year, int month, int day) |
bool | setYMD (int y, int m, int d) |
int | toJulianDay () const |
QString | toString (Qt::DateFormat f=Qt::TextDate) const |
QString | toString (const QString &format) const |
int | weekNumber (int *yearNum=0) const |
int | year () const |
Static Public Functions Index
QDate | currentDate () |
QDate | fromJulianDay (int jd) |
QDate | fromString (const QString &s, Qt::DateFormat f=Qt::TextDate) |
QDate | fromString (const QString &s, const QString &format) |
uint | gregorianToJulian (int y, int m, int d) |
bool | isLeapYear (int year) |
bool | isValid (int y, int m, int d) |
void | julianToGregorian (uint jd, int &y, int &m, int &d) |
QString | longDayName (int weekday) |
QString | longDayName (int weekday, MonthNameType type) |
QString | longMonthName (int month) |
QString | longMonthName (int month, MonthNameType type) |
QString | shortDayName (int weekday) |
QString | shortDayName (int weekday, MonthNameType type) |
QString | shortMonthName (int month) |
QString | shortMonthName (int month, MonthNameType type) |
Public Types
- DateFormat 0
- StandaloneFormat
Public Functions
Static Public Functions
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy