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/tqdate.html | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'doc/html/tqdate.html') diff --git a/doc/html/tqdate.html b/doc/html/tqdate.html index 8da5b9981..c7945c0f7 100644 --- a/doc/html/tqdate.html +++ b/doc/html/tqdate.html @@ -228,26 +228,26 @@ names can also be used, they depend on the user's locale settings.

bool TQDate::isNull () const

-

Returns TRUE if the date is null; otherwise returns FALSE. A null +

Returns true if the date is null; otherwise returns false. A null date is invalid.

See also isValid().

bool TQDate::isValid () const

-Returns TRUE if this date is valid; otherwise returns FALSE. +Returns true if this date is valid; otherwise returns false.

See also isNull().

bool TQDate::isValid ( int y, int m, int d ) [static]

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

Returns TRUE if the specified date (year y, month m and day -d) is valid; otherwise returns FALSE. +

Returns true if the specified date (year y, month m and day +d) is valid; otherwise returns false.

Example:

-    TQDate::isValid( 2002, 5, 17 );  // TRUE   May 17th 2002 is valid
-    TQDate::isValid( 2002, 2, 30 );  // FALSE  Feb 30th does not exist
-    TQDate::isValid( 2004, 2, 29 );  // TRUE   2004 is a leap year
-    TQDate::isValid( 1202, 6, 6 );   // FALSE  1202 is pre-Gregorian
+    TQDate::isValid( 2002, 5, 17 );  // true   May 17th 2002 is valid
+    TQDate::isValid( 2002, 2, 30 );  // false  Feb 30th does not exist
+    TQDate::isValid( 2004, 2, 29 );  // true   2004 is a leap year
+    TQDate::isValid( 1202, 6, 6 );   // false  1202 is pre-Gregorian
     

Warning: A y value in the range 00..99 is interpreted as @@ -256,8 +256,8 @@ This is an overloaded member function, provided for convenience. It behaves esse

bool TQDate::leapYear ( int y ) [static]

-Returns TRUE if the specified year y is a leap year; otherwise -returns FALSE. +Returns true if the specified year y is a leap year; otherwise +returns false.

TQString TQDate::longDayName ( int weekday ) [static]

@@ -290,34 +290,34 @@ Returns the month (January=1..December=12) of this date.

bool TQDate::operator!= ( const TQDate & d ) const

-

Returns TRUE if this date is different from d; otherwise returns FALSE. +

Returns true if this date is different from d; otherwise returns false.

bool TQDate::operator< ( const TQDate & d ) const

-

Returns TRUE if this date is earlier than d, otherwise returns FALSE. +

Returns true if this date is earlier than d, otherwise returns false.

bool TQDate::operator<= ( const TQDate & d ) const

-

Returns TRUE if this date is earlier than or equal to d, -otherwise returns FALSE. +

Returns true if this date is earlier than or equal to d, +otherwise returns false.

bool TQDate::operator== ( const TQDate & d ) const

-

Returns TRUE if this date is equal to d; otherwise returns FALSE. +

Returns true if this date is equal to d; otherwise returns false.

bool TQDate::operator> ( const TQDate & d ) const

-

Returns TRUE if this date is later than d, otherwise returns FALSE. +

Returns true if this date is later than d, otherwise returns false.

bool TQDate::operator>= ( const TQDate & d ) const

-

Returns TRUE if this date is later than or equal to d, -otherwise returns FALSE. +

Returns true if this date is later than or equal to d, +otherwise returns false.

bool TQDate::setYMD ( int y, int m, int d )

@@ -326,7 +326,7 @@ Sets the date's year y, month m and day d. 1..12, and d must be in the range 1..31.

Warning: If y is in the range 0..99, it is interpreted as 1900..1999. -

Returns TRUE if the date is valid; otherwise returns FALSE. +

Returns true if the date is valid; otherwise returns false.

TQString TQDate::shortDayName ( int weekday ) [static]

-- cgit v1.2.3