diff options
Diffstat (limited to 'doc/man/man3/tqtime.3qt')
-rw-r--r-- | doc/man/man3/tqtime.3qt | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/doc/man/man3/tqtime.3qt b/doc/man/man3/tqtime.3qt index 6fab22acc..efeea2eef 100644 --- a/doc/man/man3/tqtime.3qt +++ b/doc/man/man3/tqtime.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTime 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTime 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,19 +7,19 @@ .ad l .nh .SH NAME -QTime \- Clock time functions +TQTime \- Clock time functions .SH SYNOPSIS All the functions in this class are reentrant when TQt is built with thread support.</p> .PP -\fC#include <ntqdatetime.h>\fR +\fC#include <tqdatetime.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQTime\fR ()" +.BI "\fBTQTime\fR ()" .br .ti -1c -.BI "\fBQTime\fR ( int h, int m, int s = 0, int ms = 0 )" +.BI "\fBTQTime\fR ( int h, int m, int s = 0, int ms = 0 )" .br .ti -1c .BI "bool \fBisNull\fR () const" @@ -49,34 +49,34 @@ All the functions in this class are reentrant when TQt is built with thread supp .BI "bool \fBsetHMS\fR ( int h, int m, int s, int ms = 0 )" .br .ti -1c -.BI "QTime \fBaddSecs\fR ( int nsecs ) const" +.BI "TQTime \fBaddSecs\fR ( int nsecs ) const" .br .ti -1c -.BI "int \fBsecsTo\fR ( const QTime & t ) const" +.BI "int \fBsecsTo\fR ( const TQTime & t ) const" .br .ti -1c -.BI "QTime \fBaddMSecs\fR ( int ms ) const" +.BI "TQTime \fBaddMSecs\fR ( int ms ) const" .br .ti -1c -.BI "int \fBmsecsTo\fR ( const QTime & t ) const" +.BI "int \fBmsecsTo\fR ( const TQTime & t ) const" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QTime & t ) const" +.BI "bool \fBoperator==\fR ( const TQTime & t ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QTime & t ) const" +.BI "bool \fBoperator!=\fR ( const TQTime & t ) const" .br .ti -1c -.BI "bool \fBoperator<\fR ( const QTime & t ) const" +.BI "bool \fBoperator<\fR ( const TQTime & t ) const" .br .ti -1c -.BI "bool \fBoperator<=\fR ( const QTime & t ) const" +.BI "bool \fBoperator<=\fR ( const TQTime & t ) const" .br .ti -1c -.BI "bool \fBoperator>\fR ( const QTime & t ) const" +.BI "bool \fBoperator>\fR ( const TQTime & t ) const" .br .ti -1c -.BI "bool \fBoperator>=\fR ( const QTime & t ) const" +.BI "bool \fBoperator>=\fR ( const TQTime & t ) const" .br .ti -1c .BI "void \fBstart\fR ()" @@ -91,13 +91,13 @@ All the functions in this class are reentrant when TQt is built with thread supp .SS "Static Public Members" .in +1c .ti -1c -.BI "QTime \fBcurrentTime\fR ()" +.BI "TQTime \fBcurrentTime\fR ()" .br .ti -1c -.BI "QTime \fBcurrentTime\fR ( TQt::TimeSpec ts )" +.BI "TQTime \fBcurrentTime\fR ( TQt::TimeSpec ts )" .br .ti -1c -.BI "QTime \fBfromString\fR ( const TQString & s, TQt::DateFormat f = TQt::TextDate )" +.BI "TQTime \fBfromString\fR ( const TQString & s, TQt::DateFormat f = TQt::TextDate )" .br .ti -1c .BI "bool \fBisValid\fR ( int h, int m, int s, int ms = 0 )" @@ -106,49 +106,49 @@ All the functions in this class are reentrant when TQt is built with thread supp .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const QTime & t )" +.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const TQTime & t )" .br .ti -1c -.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, QTime & t )" +.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, TQTime & t )" .br .in -1c .SH DESCRIPTION -The QTime class provides clock time functions. +The TQTime class provides clock time functions. .PP -A QTime object contains a clock time, i.e. the number of hours, minutes, seconds, and milliseconds since midnight. It can read the current time from the system clock and measure a span of elapsed time. It provides functions for comparing times and for manipulating a time by adding a number of (milli)seconds. +A TQTime object contains a clock time, i.e. the number of hours, minutes, seconds, and milliseconds since midnight. It can read the current time from the system clock and measure a span of elapsed time. It provides functions for comparing times and for manipulating a time by adding a number of (milli)seconds. .PP -QTime uses the 24-hour clock format; it has no concept of AM/PM. It operates in local time; it knows nothing about time zones or daylight savings time. +TQTime uses the 24-hour clock format; it has no concept of AM/PM. It operates in local time; it knows nothing about time zones or daylight savings time. .PP -A QTime object is typically created either by giving the number of hours, minutes, seconds, and milliseconds explicitly, or by using the static function currentTime(), which creates a QTime object that contains the system's clock time. Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy. +A TQTime object is typically created either by giving the number of hours, minutes, seconds, and milliseconds explicitly, or by using the static function currentTime(), which creates a TQTime object that contains the system's clock time. Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy. .PP The hour(), minute(), second(), and msec() functions provide access to the number of hours, minutes, seconds, and milliseconds of the time. The same information is provided in textual format by the toString() function. .PP -QTime provides a full set of operators to compare two QTime objects. One time is considered smaller than another if it is earlier than the other. +TQTime provides a full set of operators to compare two TQTime objects. One time is considered smaller than another if it is earlier than the other. .PP The time a given number of seconds or milliseconds later than a given time can be found using the addSecs() or addMSecs() functions. Correspondingly, the number of (milli)seconds between two times can be found using the secsTo() or msecsTo() functions. .PP -QTime can be used to measure a span of elapsed time using the start(), restart(), and elapsed() functions. +TQTime can be used to measure a span of elapsed time using the start(), restart(), and elapsed() functions. .PP -See also QDate, QDateTime, and Time and Date. +See also TQDate, TQDateTime, and Time and Date. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTime::QTime ()" +.SH "TQTime::TQTime ()" Constructs the time 0 hours, minutes, seconds and milliseconds, i.e. 00:00:00.000 (midnight). This is a valid time. .PP See also isValid(). -.SH "QTime::QTime ( int h, int m, int s = 0, int ms = 0 )" +.SH "TQTime::TQTime ( int h, int m, int s = 0, int ms = 0 )" Constructs a time with hour \fIh\fR, minute \fIm\fR, seconds \fIs\fR and milliseconds \fIms\fR. .PP \fIh\fR must be in the range 0..23, \fIm\fR and \fIs\fR must be in the range 0..59, and \fIms\fR must be in the range 0..999. .PP See also isValid(). -.SH "QTime QTime::addMSecs ( int ms ) const" -Returns a QTime object containing a time \fIms\fR milliseconds later than the time of this object (or earlier if \fIms\fR is negative). +.SH "TQTime TQTime::addMSecs ( int ms ) const" +Returns a TQTime object containing a time \fIms\fR milliseconds later than the time of this object (or earlier if \fIms\fR is negative). .PP Note that the time will wrap if it passes midnight. See addSecs() for an example. .PP See also addSecs() and msecsTo(). -.SH "QTime QTime::addSecs ( int nsecs ) const" -Returns a QTime object containing a time \fInsecs\fR seconds later than the time of this object (or earlier if \fInsecs\fR is negative). +.SH "TQTime TQTime::addSecs ( int nsecs ) const" +Returns a TQTime object containing a time \fInsecs\fR seconds later than the time of this object (or earlier if \fInsecs\fR is negative). .PP Note that the time will wrap if it passes midnight. .PP @@ -156,9 +156,9 @@ Example: .PP .nf .br - QTime n( 14, 0, 0 ); // n == 14:00:00 + TQTime n( 14, 0, 0 ); // n == 14:00:00 .br - QTime t; + TQTime t; .br t = n.addSecs( 70 ); // t == 14:01:10 .br @@ -170,8 +170,8 @@ Example: .br .fi .PP -See also addMSecs(), secsTo(), and QDateTime::addSecs(). -.SH "QTime QTime::currentTime ( TQt::TimeSpec ts )\fC [static]\fR" +See also addMSecs(), secsTo(), and TQDateTime::addSecs(). +.SH "TQTime TQTime::currentTime ( TQt::TimeSpec ts )\fC [static]\fR" Returns the current time as reported by the system clock, for the TimeSpec \fIts\fR. The default TimeSpec is LocalTime. .PP Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy. @@ -180,13 +180,13 @@ See also TQt::TimeSpec. .PP Examples: .)l aclock/aclock.cpp, dclock/dclock.cpp, t12/cannon.cpp, and tictac/tictac.cpp. -.SH "QTime QTime::currentTime ()\fC [static]\fR" +.SH "TQTime TQTime::currentTime ()\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the current time as reported by the system clock. .PP Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy. -.SH "int QTime::elapsed () const" +.SH "int TQTime::elapsed () const" Returns the number of milliseconds that have elapsed since the last time start() or restart() was called. .PP Note that the counter wraps to zero 24 hours after the last call to start() or restart. @@ -196,24 +196,24 @@ Note that the accuracy depends on the accuracy of the underlying operating syste \fBWarning:\fR If the system's clock setting has been changed since the last time start() or restart() was called, the result is undefined. This can happen when daylight savings time is turned on or off. .PP See also start() and restart(). -.SH "QTime QTime::fromString ( const TQString & s, TQt::DateFormat f = TQt::TextDate )\fC [static]\fR" -Returns the representation \fIs\fR as a QTime using the format \fIf\fR, or an invalid time if this is not possible. +.SH "TQTime TQTime::fromString ( const TQString & s, TQt::DateFormat f = TQt::TextDate )\fC [static]\fR" +Returns the representation \fIs\fR as a TQTime using the format \fIf\fR, or an invalid time if this is not possible. .PP \fBWarning:\fR Note that TQt::LocalDate cannot be used here. -.SH "int QTime::hour () const" +.SH "int TQTime::hour () const" Returns the hour part (0..23) of the time. .PP Examples: .)l aclock/aclock.cpp and tictac/tictac.cpp. -.SH "bool QTime::isNull () const" +.SH "bool TQTime::isNull () const" Returns TRUE if the time is equal to 00:00:00.000; otherwise returns FALSE. A null time is valid. .PP See also isValid(). -.SH "bool QTime::isValid () const" +.SH "bool TQTime::isValid () const" Returns TRUE if the time is valid; otherwise returns FALSE. The time 23:30:55.746 is valid, whereas 24:12:30 is invalid. .PP See also isNull(). -.SH "bool QTime::isValid ( int h, int m, int s, int ms = 0 )\fC [static]\fR" +.SH "bool TQTime::isValid ( int h, int m, int s, int ms = 0 )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the specified time is valid; otherwise returns FALSE. @@ -224,37 +224,37 @@ Example: .PP .nf .br - QTime::isValid(21, 10, 30); // returns TRUE + TQTime::isValid(21, 10, 30); // returns TRUE .br - QTime::isValid(22, 5, 62); // returns FALSE + TQTime::isValid(22, 5, 62); // returns FALSE .br .fi -.SH "int QTime::minute () const" +.SH "int TQTime::minute () const" Returns the minute part (0..59) of the time. .PP Examples: .)l aclock/aclock.cpp and tictac/tictac.cpp. -.SH "int QTime::msec () const" +.SH "int TQTime::msec () const" Returns the millisecond part (0..999) of the time. -.SH "int QTime::msecsTo ( const QTime & t ) const" +.SH "int TQTime::msecsTo ( const TQTime & t ) const" Returns the number of milliseconds from this time to \fIt\fR (which is negative if \fIt\fR is earlier than this time). .PP -Because QTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400000 and 86400000 msec. +Because TQTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400000 and 86400000 msec. .PP See also secsTo(). -.SH "bool QTime::operator!= ( const QTime & t ) const" +.SH "bool TQTime::operator!= ( const TQTime & t ) const" Returns TRUE if this time is different from \fIt\fR; otherwise returns FALSE. -.SH "bool QTime::operator< ( const QTime & t ) const" +.SH "bool TQTime::operator< ( const TQTime & t ) const" Returns TRUE if this time is earlier than \fIt\fR; otherwise returns FALSE. -.SH "bool QTime::operator<= ( const QTime & t ) const" +.SH "bool TQTime::operator<= ( const TQTime & t ) const" Returns TRUE if this time is earlier than or equal to \fIt\fR; otherwise returns FALSE. -.SH "bool QTime::operator== ( const QTime & t ) const" +.SH "bool TQTime::operator== ( const TQTime & t ) const" Returns TRUE if this time is equal to \fIt\fR; otherwise returns FALSE. -.SH "bool QTime::operator> ( const QTime & t ) const" +.SH "bool TQTime::operator> ( const TQTime & t ) const" Returns TRUE if this time is later than \fIt\fR; otherwise returns FALSE. -.SH "bool QTime::operator>= ( const QTime & t ) const" +.SH "bool TQTime::operator>= ( const TQTime & t ) const" Returns TRUE if this time is later than or equal to \fIt\fR; otherwise returns FALSE. -.SH "int QTime::restart ()" +.SH "int TQTime::restart ()" Sets this time to the current time and returns the number of milliseconds that have elapsed since the last time start() or restart() was called. .PP This function is guaranteed to be atomic and is thus very handy for repeated measurements. Call start() to start the first measurement and then restart() for each later measurement. @@ -264,30 +264,30 @@ Note that the counter wraps to zero 24 hours after the last call to start() or r \fBWarning:\fR If the system's clock setting has been changed since the last time start() or restart() was called, the result is undefined. This can happen when daylight savings time is turned on or off. .PP See also start(), elapsed(), and currentTime(). -.SH "int QTime::second () const" +.SH "int TQTime::second () const" Returns the second part (0..59) of the time. .PP Example: tictac/tictac.cpp. -.SH "int QTime::secsTo ( const QTime & t ) const" +.SH "int TQTime::secsTo ( const TQTime & t ) const" Returns the number of seconds from this time to \fIt\fR (which is negative if \fIt\fR is earlier than this time). .PP -Because QTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400 and 86400. +Because TQTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400 and 86400. .PP -See also addSecs() and QDateTime::secsTo(). +See also addSecs() and TQDateTime::secsTo(). .PP Example: t12/cannon.cpp. -.SH "bool QTime::setHMS ( int h, int m, int s, int ms = 0 )" +.SH "bool TQTime::setHMS ( int h, int m, int s, int ms = 0 )" Sets the time to hour \fIh\fR, minute \fIm\fR, seconds \fIs\fR and milliseconds \fIms\fR. .PP \fIh\fR must be in the range 0..23, \fIm\fR and \fIs\fR must be in the range 0..59, and \fIms\fR must be in the range 0..999. Returns TRUE if the set time is valid; otherwise returns FALSE. .PP See also isValid(). -.SH "void QTime::start ()" +.SH "void TQTime::start ()" Sets this time to the current time. This is practical for timing: .PP .nf .br - QTime t; + TQTime t; .br t.start(); .br @@ -298,7 +298,7 @@ Sets this time to the current time. This is practical for timing: .fi .PP See also restart(), elapsed(), and currentTime(). -.SH "TQString QTime::toString ( const TQString & format ) const" +.SH "TQString TQTime::toString ( const TQString & format ) const" Returns the time as a string. The \fIformat\fR parameter determines the format of the result string. .PP These expressions may be used: @@ -312,7 +312,7 @@ l - l. Expression Output h the hour without a leading zero (0..23 or 1..12 if AM .PP All other input characters will be ignored. .PP -Example format strings (assuming that the QTime is 14:13:09.042) +Example format strings (assuming that the TQTime is 14:13:09.042) .PP <center>.nf .TS @@ -323,8 +323,8 @@ l - l. Format Result hh:mm:ss.zzz 14:13:09.042 h:m:s ap .PP If the time is an invalid time, then TQString::null will be returned. .PP -See also QDate::toString() and QDateTime::toString(). -.SH "TQString QTime::toString ( TQt::DateFormat f = TQt::TextDate ) const" +See also TQDate::toString() and TQDateTime::toString(). +.SH "TQString TQTime::toString ( TQt::DateFormat f = TQt::TextDate ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the time as a string. Milliseconds are not included. The \fIf\fR parameter determines the format of the string. @@ -337,17 +337,17 @@ If \fIf\fR is TQt::LocalDate, the string format depends on the locale settings o .PP If the time is an invalid time, then TQString::null will be returned. .SH RELATED FUNCTION DOCUMENTATION -.SH "QDataStream & operator<< ( QDataStream & s, const QTime & t )" +.SH "QDataStream & operator<< ( QDataStream & s, const TQTime & t )" Writes time \fIt\fR to the stream \fIs\fR. .PP See also Format of the QDataStream operators. -.SH "QDataStream & operator>> ( QDataStream & s, QTime & t )" +.SH "QDataStream & operator>> ( QDataStream & s, TQTime & t )" Reads a time from the stream \fIs\fR into \fIt\fR. .PP See also Format of the QDataStream operators. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qtime.html +.BR http://doc.trolltech.com/tqtime.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |