- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QDate>
Date functions
Java wrapper for Qt class QDate
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQDate()
SeeQDate::
QDate() QDate
(int y, int m, int d) SeeQDate::
QDate(int, int, int, QCalendar) -
Method Summary
Modifier and TypeMethodDescriptionfinal QDate
addDays
(long days) final QDate
addMonths
(int months) final QDate
final QDate
addYears
(int years) final QDate
clone()
Creates and returns a copy of this object.int
static QDate
final int
day()
final int
final int
final int
final int
final int
final int
final int
daysInMonth
(QCalendar cal) final int
final int
daysInYear
(QCalendar cal) final long
final QDateTime
endOfDay()
final QDateTime
endOfDay
(Qt.TimeSpec spec) Overloaded function forendOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
.final QDateTime
endOfDay
(Qt.TimeSpec spec, int offsetSeconds) SeeQDate::
endOfDay(Qt::TimeSpec, int)const final QDateTime
boolean
static QDate
fromJulianDay
(long jd_) static QDate
fromString
(String string) Overloaded function forfromString(java.lang.String, io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
.static QDate
fromString
(String string, Qt.DateFormat format) static QDate
fromString
(String string, String format) Overloaded function forfromString(java.lang.String, java.lang.String, io.qt.core.QCalendar)
withcal = new io.qt.core.QCalendar()
.static QDate
fromString
(String string, String format, QCalendar cal) int
hashCode()
Returns the objects's hash code computed byqHash(QDate)
.static boolean
isLeapYear
(int year) final boolean
isNull()
final boolean
isValid()
static boolean
isValid
(int y, int m, int d) final int
month()
final int
void
readFrom
(QDataStream arg__1) final boolean
setDate
(int year, int month, int day) final boolean
final QDateTime
final QDateTime
startOfDay
(Qt.TimeSpec spec) Overloaded function forstartOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
.final QDateTime
startOfDay
(Qt.TimeSpec spec, int offsetSeconds) SeeQDate::
startOfDay(Qt::TimeSpec, int)const final QDateTime
startOfDay
(QTimeZone zone) final long
final String
toString()
Overloaded function fortoString(io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
.final String
toString
(Qt.DateFormat format) final String
Overloaded function fortoString(java.lang.String, io.qt.core.QCalendar)
withcal = new io.qt.core.QCalendar()
.final String
final QDate.Week
void
writeTo
(QDataStream arg__1) final int
year()
final int
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QDate
public QDate()See
QDate::
QDate() -
QDate
public QDate(int y, int m, int d) -
QDate
See
QDate::
QDate(int, int, int, QCalendar)
-
-
Method Details
-
addDays
-
addMonths
-
addMonths
-
addYears
-
addYears
-
day
-
day
-
dayOfWeek
-
dayOfWeek
-
dayOfYear
-
dayOfYear
-
daysInMonth
-
daysInMonth
-
daysInYear
-
daysInYear
-
daysTo
-
endOfDay
-
endOfDay
Overloaded function for
endOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
. -
endOfDay
See
QDate::
endOfDay(Qt::TimeSpec, int)const -
endOfDay
-
isNull
-
isValid
-
month
-
month
-
writeTo
-
readFrom
-
setDate
-
setDate
-
startOfDay
-
startOfDay
Overloaded function for
startOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
. -
startOfDay
See
QDate::
startOfDay(Qt::TimeSpec, int)const -
startOfDay
-
toJulianDay
-
toString
Overloaded function for
toString(io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
. -
toString
-
toString
Overloaded function for
toString(java.lang.String, io.qt.core.QCalendar)
withcal = new io.qt.core.QCalendar()
. -
toString
-
weekNumber
-
year
-
year
-
currentDate
-
fromJulianDay
-
fromString
Overloaded function for
fromString(java.lang.String, io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
. -
fromString
-
fromString
Overloaded function for
fromString(java.lang.String, java.lang.String, io.qt.core.QCalendar)
withcal = new io.qt.core.QCalendar()
. -
fromString
-
isLeapYear
public static boolean isLeapYear(int year) -
isValid
public static boolean isValid(int y, int m, int d) -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QDate>
-
hashCode
Returns the objects's hash code computed byqHash(QDate)
. -
clone
Creates and returns a copy of this object.
-