The QKnxTime class holds time information. 更多...
头: | #include <QKnxTime> |
qmake: | QT += knx |
继承: | QKnxTimeBase |
bool | isValid () const |
bool | isValid (quint8 h , quint8 m , quint8 s ) |
Hour values must be less than
24
. Minute and second values must be less than
59
.
另请参阅 QKnxTimeBase , QKnxTime24 ,和 Qt KNX Datapoint Type Classes .
返回
true
if the time is valid; otherwise returns
false
. For example, the time 23:30:55.746 is valid, but 24:12:30 is invalid.
另请参阅 QKnxTimeBase::isNull ().
[static]
bool
QKnxTime::
isValid
(
quint8
h
,
quint8
m
,
quint8
s
)
返回
true
if the values specified for hours
h
, minutes
m
, and seconds
s
are valid; otherwise returns
false
.
另请参阅 QKnxTimeBase::isNull ().