java.lang.Object
io.qt.QtObject
io.qt.core.QTime
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTime>
Clock time functions
Java wrapper for Qt class QTime
-
Constructor Summary
ConstructorDescriptionQTime()
SeeQTime::
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) SeeQTime::
QTime(QTime) -
Method Summary
Modifier and TypeMethodDescriptionfinal QTime
addMSecs
(int ms) final QTime
addSecs
(int secs) clone()
Creates and returns a copy of this object.int
static QTime
final boolean
boolean
static QTime
fromMSecsSinceStartOfDay
(int msecs) static QTime
fromString
(String string) Overloaded function forfromString(java.lang.String, io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
.static QTime
fromString
(String string, Qt.DateFormat format) static QTime
fromString
(String string, String format) int
hashCode()
Returns the objects's hash code computed byqHash(QTime)
.final int
hour()
final boolean
isNull()
final 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) final int
minute()
final int
msec()
final int
final int
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QTime&) final int
second()
final int
final boolean
setHMS
(int h, int m, int s) Overloaded function forsetHMS(int, int, int, int)
withms = 0
.final boolean
setHMS
(int h, int m, int s, int ms) final String
toString()
Overloaded function fortoString(io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
.final String
final String
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QTime) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QTime
public QTime()See
QTime::
QTime() -
QTime
See
QTime::
QTime(QTime) - Parameters:
other
-
-
QTime
public QTime(int h, int m, int s, int ms) - Parameters:
h
-m
-s
-ms
-
-
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)
-
-
Method Details
-
addMSecs
- Parameters:
ms
-- Returns:
-
addSecs
- Parameters:
secs
-- Returns:
-
hour
- Returns:
-
isNull
- Returns:
-
isValid
- Returns:
-
minute
- Returns:
-
msec
- Returns:
-
msecsSinceStartOfDay
- Returns:
-
msecsTo
- Parameters:
t
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QTime) - Parameters:
arg__1
-
-
equals
- Parameters:
rhs
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QTime&) - Parameters:
arg__1
-
-
second
- Returns:
-
secsTo
- Parameters:
t
-- Returns:
-
setHMS
- Parameters:
h
-m
-s
-ms
-- Returns:
-
toString
- Parameters:
format
-- Returns:
-
toString
- Parameters:
f
-- Returns:
-
currentTime
- Returns:
-
fromMSecsSinceStartOfDay
- Parameters:
msecs
-- Returns:
-
fromString
- Parameters:
string
-format
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
fromString
- Parameters:
string
-format
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
isValid
public static boolean isValid(int h, int m, int s, int ms) - Parameters:
h
-m
-s
-ms
-- Returns:
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QTime>
-
hashCode
Returns the objects's hash code computed byqHash(QTime)
. -
clone
Creates and returns a copy of this object.
See
QTime::
QTime(QTime) -
setHMS
Overloaded function for
setHMS(int, int, int, int)
withms = 0
. -
toString
Overloaded function for
toString(io.qt.core.Qt.DateFormat)
withf = io.qt.core.Qt.DateFormat.TextDate
. -
fromString
Overloaded function for
fromString(java.lang.String, io.qt.core.Qt.DateFormat)
withformat = io.qt.core.Qt.DateFormat.TextDate
. -
isValid
public static boolean isValid(int h, int m, int s) Overloaded function for
isValid(int, int, int, int)
withms = 0
.
-