- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QDateTime>
public class QDateTime extends QtObject implements Comparable<QDateTime>, Cloneable
Date and time functions
Java wrapper for Qt class QDateTime
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QDateTime.YearRange
Java wrapper for Qt enum QDateTime::YearRange -
Constructor Summary
Constructors Modifier Constructor Description QDateTime()
QDateTime(QDate date, QTime time)
Overloaded constructor forQDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)
QDateTime(QDate date, QTime time, Qt.TimeSpec spec)
Overloaded constructor forQDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
.QDateTime(QDate date, QTime time, Qt.TimeSpec spec, int offsetSeconds)
QDateTime(QDate date, QTime time, QTimeZone timeZone)
QDateTime(QDateTime other)
protected
QDateTime(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
-
Constructor Details
-
QDateTime
public QDateTime() -
QDateTime
Overloaded constructor for
QDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)
withoffsetSeconds = 0
. -
QDateTime
Overloaded constructor for
QDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)
with:
spec = io.qt.core.Qt.TimeSpec.LocalTime
offsetSeconds = 0
-
QDateTime
-
QDateTime
-
QDateTime
-
QDateTime
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addDays
-
addMSecs
-
addMonths
-
addSecs
-
addYears
-
date
-
daysTo
-
isDaylightTime
-
isNull
-
isValid
-
msecsTo
-
offsetFromUtc
-
writeTo
-
readFrom
-
secsTo
-
setDate
-
setMSecsSinceEpoch
-
setOffsetFromUtc
-
setSecsSinceEpoch
-
setTime
-
setTimeSpec
-
setTimeZone
-
swap
-
time
-
timeSpec
-
timeZone
-
timeZoneAbbreviation
-
toLocalTime
-
toMSecsSinceEpoch
-
toOffsetFromUtc
-
toSecsSinceEpoch
-
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
-
toTimeSpec
-
toTimeZone
-
toUTC
-
currentDateTime
-
currentDateTimeUtc
-
currentMSecsSinceEpoch
public static long currentMSecsSinceEpoch() -
currentSecsSinceEpoch
public static long currentSecsSinceEpoch() -
fromMSecsSinceEpoch
Overloaded function for
fromMSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)
withoffsetFromUtc = 0
. -
fromMSecsSinceEpoch
Overloaded function for
fromMSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)
with:
spec = io.qt.core.Qt.TimeSpec.LocalTime
offsetFromUtc = 0
-
fromMSecsSinceEpoch
-
fromMSecsSinceEpoch
-
fromSecsSinceEpoch
Overloaded function for
fromSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)
withoffsetFromUtc = 0
. -
fromSecsSinceEpoch
Overloaded function for
fromSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)
with:
spec = io.qt.core.Qt.TimeSpec.LocalTime
offsetFromUtc = 0
-
fromSecsSinceEpoch
-
fromSecsSinceEpoch
-
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
-
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<QDateTime>
-
hashCode
-
clone
-