- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QDate>
Date functions
Java wrapper for Qt's class QDate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QDate::MonthNameTypestatic final class
Result class forweekNumber()
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQDate()
See QDate::QDate()QDate
(int y, int m, int d) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QDate
addDays
(long days) final QDate
addMonths
(int months) final QDate
final QDate
addYears
(int years) final QDate
clone()
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()
Overloaded function forendOfDay(io.qt.core.Qt.TimeSpec, int)
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) final QDateTime
boolean
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 s) Overloaded function forfromString(java.lang.String, io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
.static QDate
fromString
(String s, Qt.DateFormat f) static QDate
fromString
(String s, String format) static QDate
fromString
(String s, String format, QCalendar cal) int
hashCode()
static boolean
isLeapYear
(int year) final boolean
isNull()
final boolean
isValid()
static boolean
isValid
(int y, int m, int d) static String
longDayName
(int weekday) Deprecated.Use QLocale::dayName or QLocale::standaloneDayNamestatic String
longDayName
(int weekday, QDate.MonthNameType type) Deprecated.Use QLocale::dayName or QLocale::standaloneDayNamestatic String
longMonthName
(int month) Deprecated.Use QLocale::monthName or QLocale::standaloneMonthNamestatic String
longMonthName
(int month, QDate.MonthNameType type) Deprecated.Use QLocale::monthName or QLocale::standaloneMonthNamefinal int
month()
final int
void
readFrom
(QDataStream arg__1) final boolean
setDate
(int year, int month, int day) final boolean
static String
shortDayName
(int weekday) Deprecated.Use QLocale::dayName or QLocale::standaloneDayNamestatic String
shortDayName
(int weekday, QDate.MonthNameType type) Deprecated.Use QLocale::dayName or QLocale::standaloneDayNamestatic String
shortMonthName
(int month) Deprecated.Use QLocale::monthName or QLocale::standaloneMonthNamestatic String
shortMonthName
(int month, QDate.MonthNameType type) Deprecated.Use QLocale::monthName or QLocale::standaloneMonthNamefinal QDateTime
Overloaded function forstartOfDay(io.qt.core.Qt.TimeSpec, int)
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) 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
toString
(Qt.DateFormat format, QCalendar cal) Deprecated.Use QLocale or omit the calendarfinal String
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
-
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
Deprecated.Use QLocale or omit the calendar -
toString
-
toString
-
weekNumber
-
year
-
year
-
currentDate
-
fromJulianDay
-
fromString
Overloaded function for
fromString(java.lang.String, io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
. -
fromString
-
fromString
-
fromString
-
isLeapYear
public static boolean isLeapYear(int year) -
isValid
public static boolean isValid(int y, int m, int d) -
longDayName
Deprecated.Use QLocale::dayName or QLocale::standaloneDayNameOverloaded function for
longDayName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
longDayName
Deprecated.Use QLocale::dayName or QLocale::standaloneDayName -
longMonthName
Deprecated.Use QLocale::monthName or QLocale::standaloneMonthNameOverloaded function for
longMonthName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
longMonthName
Deprecated.Use QLocale::monthName or QLocale::standaloneMonthName -
shortDayName
Deprecated.Use QLocale::dayName or QLocale::standaloneDayNameOverloaded function for
shortDayName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
shortDayName
Deprecated.Use QLocale::dayName or QLocale::standaloneDayName -
shortMonthName
Deprecated.Use QLocale::monthName or QLocale::standaloneMonthNameOverloaded function for
shortMonthName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
shortMonthName
Deprecated.Use QLocale::monthName or QLocale::standaloneMonthName -
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
-