QKnxTime Class

The QKnxTime class holds time information. More...

Header: #include <QKnxTime>
qmake: QT += knx
Inherits: QKnxTimeBase

Public Functions

bool isValid() const

Static Public Members

bool isValid(quint8 h, quint8 m, quint8 s)

Detailed Description

Hour values must be less than 24. Minute and second values must be less than 59.

See also QKnxTimeBase, QKnxTime24, and Qt KNX Datapoint Type Classes.

Member Function Documentation

bool QKnxTime::isValid() const

Returns 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.

See also QKnxTimeBase::isNull().

[static] bool QKnxTime::isValid(quint8 h, quint8 m, quint8 s)

Returns true if the values specified for hours h, minutes m, and seconds s are valid; otherwise returns false.

See also QKnxTimeBase::isNull().

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.