Interval class represents a time interval with integer precision.
An interval is specified by an inclusive
end() time. These must be set in the constructor, as this is an immutable class. The specific units of time represented by the class have not been defined - it is suitable for any times which can be represented by a signed 64 bit integer.
isNormal() method determines if a time interval is normal (a normal time interval has
end() ). A normal interval can be received from an abnormal interval by calling the
contains() method determines if a specified time lies within the time interval.
translated() method returns a time interval which has been translated forwards or backwards through time by a specified offset.
Constructs an interval with the specified
Returns true if the time interval contains the specified
time. That is,
start() <= time <=
Returns the end time of the interval.
Returns true if this time interval is normal. A normal time interval has
Returns a normalized version of this interval.
start() time of the interval is greater than the
end() time, then the returned interval has the start and end times swapped.
Returns true if
lhs is not exactly equal to
Returns true if
lhs is exactly equal to
Returns the start time of the interval.
Returns a copy of this time interval, translated by a value of
offset. An interval can be moved forward through time with a positive offset, or backward through time with a negative offset.
© 2022 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.