- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QDate>
Date functions
Java wrapper for Qt class QDate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQDate::MonthNameType
static final class
Result class forweekNumber()
-
Constructor Summary
ConstructorDescriptionQDate()
SeeQDate::
QDate() QDate
(int y, int m, int d) SeeQDate::
QDate(int, int, int, QCalendar) SeeQDate::
QDate(QDate) -
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()
Overloaded function forendOfDay(io.qt.core.Qt.TimeSpec, int)
final QDateTime
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 boolean
boolean
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()
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) static String
longDayName
(int weekday) Overloaded function forlongDayName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
.static String
longDayName
(int weekday, QDate.MonthNameType type) static String
longMonthName
(int month) Overloaded function forlongMonthName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
.static String
longMonthName
(int month, QDate.MonthNameType type) final int
month()
final int
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QDate&) final boolean
setDate
(int year, int month, int day) final boolean
static String
shortDayName
(int weekday) Overloaded function forshortDayName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
.static String
shortDayName
(int weekday, QDate.MonthNameType type) static String
shortMonthName
(int month) Overloaded function forshortMonthName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
.static String
shortMonthName
(int month, QDate.MonthNameType type) final QDateTime
Overloaded function forstartOfDay(io.qt.core.Qt.TimeSpec, int)
final QDateTime
startOfDay
(QTimeZone zone) 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 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) SeeQDate::
toString(Qt::DateFormat, QCalendar)const final String
final String
final QDate.Week
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QDate) final int
year()
final int
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QDate
public QDate()See
QDate::
QDate() -
QDate
See
QDate::
QDate(QDate) - Parameters:
other
-
-
QDate
public QDate(int y, int m, int d) - Parameters:
y
-m
-d
-
-
QDate
See
QDate::
QDate(int, int, int, QCalendar) - Parameters:
y
-m
-d
-cal
-
-
-
Method Details
-
addDays
- Parameters:
days
-- Returns:
-
addMonths
- Parameters:
months
-- Returns:
-
addMonths
- Parameters:
months
-cal
-- Returns:
-
addYears
- Parameters:
years
-- Returns:
-
addYears
- Parameters:
years
-cal
-- Returns:
-
day
- Returns:
-
day
- Parameters:
cal
-- Returns:
-
dayOfWeek
- Returns:
-
dayOfWeek
- Parameters:
cal
-- Returns:
-
dayOfYear
- Returns:
-
dayOfYear
- Parameters:
cal
-- Returns:
-
daysInMonth
- Returns:
-
daysInMonth
- Parameters:
cal
-- Returns:
-
daysInYear
- Returns:
-
daysInYear
- Parameters:
cal
-- Returns:
-
daysTo
- Parameters:
arg__1
-- Returns:
-
endOfDay
- Parameters:
zone
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
endOfDay
- Parameters:
spec
-offsetSeconds
-- Returns:
-
isNull
- Returns:
-
isValid
- Returns:
-
month
- Returns:
-
month
- Parameters:
cal
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QDate) - Parameters:
arg__1
-
-
equals
- Parameters:
other
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QDate&) - Parameters:
arg__1
-
-
setDate
- Parameters:
year
-month
-day
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
setDate
- Parameters:
year
-month
-day
-cal
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
startOfDay
- Parameters:
zone
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
startOfDay
- Parameters:
spec
-offsetSeconds
-- Returns:
-
toJulianDay
- Returns:
-
toString
- Parameters:
format
-- Returns:
-
toString
- Parameters:
format
-cal
-- Returns:
-
toString
- Parameters:
format
-- Returns:
-
toString
See
QDate::
toString(Qt::DateFormat, QCalendar)const - Parameters:
format
-cal
-- Returns:
-
weekNumber
- Returns:
-
year
- Returns:
-
year
- Parameters:
cal
-- Returns:
-
currentDate
- Returns:
-
fromJulianDay
- Parameters:
jd_
-- Returns:
-
fromString
- Parameters:
s
-format
-- Returns:
-
fromString
- Parameters:
s
-format
-cal
-- Returns:
-
fromString
- Parameters:
s
-f
-- Returns:
-
isLeapYear
public static boolean isLeapYear(int year) - Parameters:
year
-- Returns:
-
isValid
public static boolean isValid(int y, int m, int d) - Parameters:
y
-m
-d
-- Returns:
-
longDayName
- Parameters:
weekday
-type
-- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
longMonthName
- Parameters:
month
-type
-- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
shortDayName
- Parameters:
weekday
-type
-- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
shortMonthName
- Parameters:
month
-type
-- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
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.
See
QDate::
QDate(QDate) -
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
-
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
-
toString
Overloaded function for
toString(io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
. -
fromString
Overloaded function for
fromString(java.lang.String, io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
. -
longDayName
Overloaded function for
longDayName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
longMonthName
Overloaded function for
longMonthName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
shortDayName
Overloaded function for
shortDayName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
. -
shortMonthName
Overloaded function for
shortMonthName(int, io.qt.core.QDate.MonthNameType)
withtype = io.qt.core.QDate.MonthNameType.DateFormat
.
-