The following members of class QDate are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
(obsolete) bool |
setYMD(int y, int m, int d) |
(obsolete) QString |
longDayName(int weekday, QDate::MonthNameType type = DateFormat) |
(obsolete) QString |
longMonthName(int month, QDate::MonthNameType type = DateFormat) |
(obsolete) QString |
shortDayName(int weekday, QDate::MonthNameType type = DateFormat) |
(obsolete) QString |
shortMonthName(int month, QDate::MonthNameType type = DateFormat) |
[static]
QString QDate::longDayName(int weekday, QDate::MonthNameType type = DateFormat)Returns the long name of the weekday for the representation specified by type.
The days are enumerated using the following convention:
The day names will be localized according to the system's locale settings, i.e. using QLocale::system().
Returns an empty string if the date is invalid.
This function was introduced in Qt 4.5.
See also toString(), shortDayName(), shortMonthName(), and longMonthName().
[static]
QString QDate::longMonthName(int month, QDate::MonthNameType type = DateFormat)Returns the long name of the month for the representation specified by type.
The months are enumerated using the following convention:
The month names will be localized according to the system's locale settings, i.e. using QLocale::system().
Returns an empty string if the date is invalid.
This function was introduced in Qt 4.5.
See also toString(), shortMonthName(), shortDayName(), and longDayName().
Sets the date's year y, month m, and day d.
If y is in the range 0 to 99, it is interpreted as 1900 to 1999. Returns false
if the date is invalid.
Use setDate() instead.
[static]
QString QDate::shortDayName(int weekday, QDate::MonthNameType type = DateFormat)Returns the short name of the weekday for the representation specified by type.
The days are enumerated using the following convention:
The day names will be localized according to the system's locale settings, i.e. using QLocale::system().
Returns an empty string if the date is invalid.
This function was introduced in Qt 4.5.
See also toString(), shortMonthName(), longMonthName(), and longDayName().
[static]
QString QDate::shortMonthName(int month, QDate::MonthNameType type = DateFormat)Returns the short name of the month for the representation specified by type.
The months are enumerated using the following convention:
The month names will be localized according to the system's locale settings, i.e. using QLocale::system().
Returns an empty string if the date is invalid.
This function was introduced in Qt 4.5.
See also toString(), longMonthName(), shortDayName(), and longDayName().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: