QDate

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
@Q_MOVABLE_TYPE
@QMetaType.Type.QDate
struct QDate {}

Constructors

this
this(int y, int m, int d)
Undocumented in source.
this
this(int y, int m, int d, QCalendar cal)
Undocumented in source.

Members

Enums

MonthNameType
enum MonthNameType
Undocumented in source.

Functions

addDays
QDate addDays(qint64 days)
Undocumented in source.
addMonths
QDate addMonths(int months)
Undocumented in source.
addMonths
QDate addMonths(int months, QCalendar cal)
Undocumented in source.
addYears
QDate addYears(int years)
Undocumented in source.
addYears
QDate addYears(int years, QCalendar cal)
Undocumented in source.
day
int day()
Undocumented in source.
day
int day(QCalendar cal)
Undocumented in source.
dayOfWeek
int dayOfWeek()
Undocumented in source.
dayOfWeek
int dayOfWeek(QCalendar cal)
Undocumented in source.
dayOfYear
int dayOfYear()
Undocumented in source.
dayOfYear
int dayOfYear(QCalendar cal)
Undocumented in source.
daysInMonth
int daysInMonth()
Undocumented in source.
daysInMonth
int daysInMonth(QCalendar cal)
Undocumented in source.
daysInYear
int daysInYear()
Undocumented in source.
daysInYear
int daysInYear(QCalendar cal)
Undocumented in source.
daysTo
qint64 daysTo(const(QDate) )
Undocumented in source.
endOfDay
QDateTime endOfDay(qt.core.namespace.TimeSpec spec, int offsetSeconds)
Undocumented in source.
endOfDay
QDateTime endOfDay(const(QTimeZone) zone)
Undocumented in source.
getDate
void getDate(int* year, int* month, int* day)
Undocumented in source.
getDate
void getDate(int* year, int* month, int* day)
Undocumented in source.
isNull
bool isNull()
Undocumented in source. Be warned that the author may not have intended to support it.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
month
int month()
Undocumented in source.
month
int month(QCalendar cal)
Undocumented in source.
setDate
bool setDate(int year, int month, int day)
Undocumented in source.
setDate
bool setDate(int year, int month, int day, QCalendar cal)
Undocumented in source.
startOfDay
QDateTime startOfDay(qt.core.namespace.TimeSpec spec, int offsetSeconds)
Undocumented in source.
startOfDay
QDateTime startOfDay(const(QTimeZone) zone)
Undocumented in source.
toJulianDay
qint64 toJulianDay()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(qt.core.namespace.DateFormat format)
Undocumented in source.
toString
QString toString(qt.core.namespace.DateFormat format, QCalendar cal)
Undocumented in source.
toString
QString toString(const(QString) format)
Undocumented in source.
toString
QString toString(const(QString) format, QCalendar cal)
Undocumented in source.
toString
QString toString(QStringView format)
Undocumented in source.
toString
QString toString(QStringView format, QCalendar cal)
Undocumented in source.
weekNumber
int weekNumber(int* yearNum)
Undocumented in source.
year
int year()
Undocumented in source.
year
int year(QCalendar cal)
Undocumented in source.

Static functions

currentDate
QDate currentDate()
Undocumented in source.
fromJulianDay
QDate fromJulianDay(qint64 jd_)
Undocumented in source. Be warned that the author may not have intended to support it.
fromString
QDate fromString(const(QString) s, qt.core.namespace.DateFormat f)
Undocumented in source.
fromString
QDate fromString(const(QString) s, const(QString) format)
Undocumented in source.
fromString
QDate fromString(const(QString) s, const(QString) format, QCalendar cal)
Undocumented in source.
isLeapYear
bool isLeapYear(int year)
Undocumented in source.
isValid
bool isValid(int y, int m, int d)
Undocumented in source.
longDayName
QString longDayName(int weekday, MonthNameType type)
Undocumented in source.
longMonthName
QString longMonthName(int month, MonthNameType type)
Undocumented in source.
shortDayName
QString shortDayName(int weekday, MonthNameType type)
Undocumented in source.
shortMonthName
QString shortMonthName(int month, MonthNameType type)
Undocumented in source.

Meta