QTime Class Reference
The QTime class provides time functions 24 hours a day.
(details)
(complete member list)
#include <qdatetm.h>
Public Members
- QTime ()
- QTime (int h, int m, int s=0, int ms=0)
- bool isNull () const
- bool isValid () const
- int hour () const
- int minute () const
- int second () const
- int msec () const
- QString toString () const
- bool setHMS (int h, int m, int s, int ms=0)
- QTime addSecs (long secs) const
- long secsTo (const QTime&) const
- QTime addMSecs (long ms) const
- long msecsTo (const QTime&) const
- bool operator== (const QTime& d) const
- bool operator!= (const QTime& d) const
- bool operator< (const QTime& d) const
- bool operator<= (const QTime& d) const
- bool operator> (const QTime& d) const
- bool operator>= (const QTime& d) const
- void start ()
- long restart ()
- long elapsed ()
Static Public Members
- QTime currentTime ()
- bool isValid (int h, int m, int s, int ms=0)
Related Functions
(Note that these are not member functions.)
- QDataStream & operator<< (QDataStream &s, const QTime &t)
- QDataStream & operator>> (QDataStream &s, QTime &t)
The QTime class provides time functions 24 hours a day.
The time resolution of QTime is a millisecond, although the accuracy
depends on the underlying operating system. Some operating systems
(e.g. Linux) support a one-millisecond resolution, while others
(i.e. MS-DOS and Windows) support only a 55 millisecond
resolution.
Member Function Documentation
Constructs a null time 00:00:00.000. Null times are valid.
Related Functions
Writes the time t to the stream s and returns a reference to s.
Reads the time t from the stream s and returns a reference to s.
This file is part of the Qt toolkit,
copyright 1995
Troll Tech, all rights reserved.
It was generated from the following files:
- qdatetm.h: 1995/03/15
- qdatetm.cpp: 1995/05/16
Generated at 04:27, 1995/05/20 by the webmaster at Troll Tech