QDate

Binding for C++ class QDate.

extern (C++) extern (C++)
@Q_RELOCATABLE_TYPE
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

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(QDate d)
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.
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(const(QString) format, QCalendar cal)
Undocumented in source. Be warned that the author may not have intended to support it.
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(QStringView string, qt.core.namespace.DateFormat format)
Undocumented in source.
fromString
QDate fromString(QStringView string, QStringView format, QCalendar cal)
Undocumented in source. Be warned that the author may not have intended to support it.
fromString
QDate fromString(const(QString) string, QStringView format, QCalendar cal)
Undocumented in source.
fromString
QDate fromString(const(QString) string, qt.core.namespace.DateFormat format)
Undocumented in source. Be warned that the author may not have intended to support it.
fromString
QDate fromString(const(QString) string, const(QString) format, QCalendar cal)
Undocumented in source. Be warned that the author may not have intended to support it.
isLeapYear
bool isLeapYear(int year)
Undocumented in source.
isValid
bool isValid(int y, int m, int d)
Undocumented in source.

Meta