QKnxTime Class

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 .

成员函数文档编制

bool QKnxTime:: isValid () const

返回 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 ().