From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqtime.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'doc/html/tqtime.html') diff --git a/doc/html/tqtime.html b/doc/html/tqtime.html index 3e1159a19..db73c3d40 100644 --- a/doc/html/tqtime.html +++ b/doc/html/tqtime.html @@ -195,27 +195,27 @@ Returns the hour part (0..23) of the time.

bool TQTime::isNull () const

-

Returns TRUE if the time is equal to 00:00:00.000; otherwise -returns FALSE. A null time is valid. +

Returns true if the time is equal to 00:00:00.000; otherwise +returns false. A null time is valid.

See also isValid().

bool TQTime::isValid () const

-Returns TRUE if the time is valid; otherwise returns FALSE. The +Returns true if the time is valid; otherwise returns false. The time 23:30:55.746 is valid, whereas 24:12:30 is invalid.

See also isNull().

bool TQTime::isValid ( int h, int m, int s, int ms = 0 ) [static]

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

Returns TRUE if the specified time is valid; otherwise returns -FALSE. +

Returns true if the specified time is valid; otherwise returns +false.

The time is valid if h is in the range 0..23, m and s are in the range 0..59, and ms is in the range 0..999.

Example:

-    TQTime::isValid(21, 10, 30); // returns TRUE
-    TQTime::isValid(22, 5,  62); // returns FALSE
+    TQTime::isValid(21, 10, 30); // returns true
+    TQTime::isValid(22, 5,  62); // returns false
     
@@ -240,34 +240,34 @@ seconds in a day, the result is always between -86400000 and

bool TQTime::operator!= ( const TQTime & t ) const

-

Returns TRUE if this time is different from t; otherwise returns FALSE. +

Returns true if this time is different from t; otherwise returns false.

bool TQTime::operator< ( const TQTime & t ) const

-

Returns TRUE if this time is earlier than t; otherwise returns FALSE. +

Returns true if this time is earlier than t; otherwise returns false.

bool TQTime::operator<= ( const TQTime & t ) const

-

Returns TRUE if this time is earlier than or equal to t; -otherwise returns FALSE. +

Returns true if this time is earlier than or equal to t; +otherwise returns false.

bool TQTime::operator== ( const TQTime & t ) const

-

Returns TRUE if this time is equal to t; otherwise returns FALSE. +

Returns true if this time is equal to t; otherwise returns false.

bool TQTime::operator> ( const TQTime & t ) const

-

Returns TRUE if this time is later than t; otherwise returns FALSE. +

Returns true if this time is later than t; otherwise returns false.

bool TQTime::operator>= ( const TQTime & t ) const

-

Returns TRUE if this time is later than or equal to t; -otherwise returns FALSE. +

Returns true if this time is later than or equal to t; +otherwise returns false.

int TQTime::restart ()

@@ -304,8 +304,8 @@ seconds in a day, the result is always between -86400 and 86400. Sets the time to hour h, minute m, seconds s and milliseconds ms.

h must be in the range 0..23, m and s must be in the -range 0..59, and ms must be in the range 0..999. Returns TRUE -if the set time is valid; otherwise returns FALSE. +range 0..59, and ms must be in the range 0..999. Returns true +if the set time is valid; otherwise returns false.

See also isValid().

void TQTime::start () -- cgit v1.2.3