java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QTime
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTime>
public class QTime extends QtObject implements Comparable<QTime>, Cloneable
Clock time functions
Java wrapper for Qt class QTime
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QTime()
See QTime::QTime()QTime(int h, int m)
Overloaded constructor forQTime(int, int, int, int)
QTime(int h, int m, int s)
Overloaded constructor forQTime(int, int, int, int)
withms = 0
.QTime(int h, int m, int s, int ms)
protected
QTime(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QTime
addMSecs(int ms)
QTime
addSecs(int secs)
QTime
clone()
int
compareTo(QTime other)
static QTime
currentTime()
int
elapsed()
Deprecated.Use QElapsedTimer insteadboolean
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 QTime
fromMSecsSinceStartOfDay(int msecs)
static QTime
fromString(String s)
Overloaded function forfromString(java.lang.String, io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
.static QTime
fromString(String s, Qt.DateFormat f)
static QTime
fromString(String s, String format)
int
hashCode()
int
hour()
boolean
isNull()
boolean
isValid()
static boolean
isValid(int h, int m, int s)
Overloaded function forisValid(int, int, int, int)
withms = 0
.static boolean
isValid(int h, int m, int s, int ms)
int
minute()
int
msec()
int
msecsSinceStartOfDay()
int
msecsTo(QTime arg__1)
void
readFrom(QDataStream arg__1)
int
restart()
Deprecated.Use QElapsedTimer insteadint
second()
int
secsTo(QTime arg__1)
boolean
setHMS(int h, int m, int s)
Overloaded function forsetHMS(int, int, int, int)
withms = 0
.boolean
setHMS(int h, int m, int s, int ms)
void
start()
Deprecated.Use QElapsedTimer insteadString
toString()
Overloaded function fortoString(io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
.String
toString(Qt.DateFormat f)
String
toString(String format)
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QTime
public QTime()See QTime::QTime()
-
QTime
public QTime(int h, int m, int s)Overloaded constructor for
QTime(int, int, int, int)
withms = 0
. -
QTime
public QTime(int h, int m) -
QTime
public QTime(int h, int m, int s, int ms) -
QTime
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
addMSecs
-
addSecs
-
elapsed
Deprecated.Use QElapsedTimer instead -
hour
-
isNull
-
isValid
-
minute
-
msec
-
msecsSinceStartOfDay
-
msecsTo
-
writeTo
-
readFrom
-
restart
Deprecated.Use QElapsedTimer insteadSee QTime::restart()
-
second
-
secsTo
-
setHMS
Overloaded function for
setHMS(int, int, int, int)
withms = 0
. -
setHMS
-
start
Deprecated.Use QElapsedTimer insteadSee QTime::start()
-
toString
Overloaded function for
toString(io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
. -
toString
-
toString
-
currentTime
-
fromMSecsSinceStartOfDay
-
fromString
Overloaded function for
fromString(java.lang.String, io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
. -
fromString
-
fromString
-
isValid
public static boolean isValid(int h, int m, int s)Overloaded function for
isValid(int, int, int, int)
withms = 0
. -
isValid
public static boolean isValid(int h, int m, int s, int ms) -
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<QTime>
-
hashCode
public int hashCode() -
clone
-