- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QDate>
public class QDate extends QtObject implements Comparable<QDate>, Cloneable
Date functions
Java wrapper for Qt class QDate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QDate.Week
Result class forweekNumber()
-
Constructor Summary
Constructors Modifier Constructor Description QDate()
See QDate::QDate()QDate(int y, int m, int d)
QDate(int y, int m, int d, QCalendar cal)
protected
QDate(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QDate
addDays(long days)
QDate
addMonths(int months)
QDate
addMonths(int months, QCalendar cal)
QDate
addYears(int years)
QDate
addYears(int years, QCalendar cal)
QDate
clone()
int
compareTo(QDate other)
static QDate
currentDate()
int
day()
int
day(QCalendar cal)
int
dayOfWeek()
int
dayOfWeek(QCalendar cal)
int
dayOfYear()
int
dayOfYear(QCalendar cal)
int
daysInMonth()
int
daysInMonth(QCalendar cal)
int
daysInYear()
int
daysInYear(QCalendar cal)
long
daysTo(QDate d)
QDateTime
endOfDay()
Overloaded function forendOfDay(io.qt.core.Qt.TimeSpec, int)
QDateTime
endOfDay(Qt.TimeSpec spec)
Overloaded function forendOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
.QDateTime
endOfDay(Qt.TimeSpec spec, int offsetSeconds)
QDateTime
endOfDay(QTimeZone zone)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.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()
static boolean
isLeapYear(int year)
boolean
isNull()
boolean
isValid()
static boolean
isValid(int y, int m, int d)
int
month()
int
month(QCalendar cal)
void
readFrom(QDataStream arg__1)
boolean
setDate(int year, int month, int day)
boolean
setDate(int year, int month, int day, QCalendar cal)
QDateTime
startOfDay()
Overloaded function forstartOfDay(io.qt.core.Qt.TimeSpec, int)
QDateTime
startOfDay(Qt.TimeSpec spec)
Overloaded function forstartOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
.QDateTime
startOfDay(Qt.TimeSpec spec, int offsetSeconds)
QDateTime
startOfDay(QTimeZone zone)
long
toJulianDay()
String
toString()
Overloaded function fortoString(io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
.String
toString(Qt.DateFormat format)
String
toString(String format)
Overloaded function fortoString(java.lang.String, io.qt.core.QCalendar)
withcal = new io.qt.core.QCalendar()
.String
toString(String format, QCalendar cal)
QDate.Week
weekNumber()
void
writeTo(QDataStream arg__1)
int
year()
int
year(QCalendar cal)
-
Constructor Details
-
QDate
public QDate()See QDate::QDate()
-
QDate
public QDate(int y, int m, int d) -
QDate
-
QDate
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addDays
-
addMonths
-
addMonths
-
addYears
-
addYears
-
day
-
day
-
dayOfWeek
-
dayOfWeek
-
dayOfYear
-
dayOfYear
-
daysInMonth
-
daysInMonth
-
daysInYear
-
daysInYear
-
daysTo
-
endOfDay
Overloaded function for
endOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
. -
endOfDay
Overloaded function for
endOfDay(io.qt.core.Qt.TimeSpec, int)
with:
spec = io.qt.core.Qt.TimeSpec.LocalTime
offsetSeconds = 0
-
endOfDay
-
endOfDay
-
isNull
-
isValid
-
month
-
month
-
writeTo
-
readFrom
-
setDate
-
setDate
-
startOfDay
Overloaded function for
startOfDay(io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
. -
startOfDay
Overloaded function for
startOfDay(io.qt.core.Qt.TimeSpec, int)
with:
spec = io.qt.core.Qt.TimeSpec.LocalTime
offsetSeconds = 0
-
startOfDay
-
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
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QDate>
-
hashCode
-
clone
-