Tools.h++ Manual

104011 Tandem Computers Incorporated 21-187
21
RWTime operator--();
Prefix decrement operator. Subtract one second from self, then return the
results.
RWTime operator++(int);
Postfix increment operator. Add one second to self, returning the initial value.
RWTime operator--(int);
Postfix decrement operator. Subtract one second from self, returning the initial
value.
RWTime& operator+=(long s);
Add
s
seconds to self, returning self.
RWTime& operator-=(long s);
Subtract
s
seconds from self, returning self.
Public member functions
RWCString asString(char format = '\0',
const RWZone& =
RWZone::local(), const
RWLocale& = RWLocale::global())
const;
Returns self as a string, formatted by the
RWLocale
argument, with the time
zone adjusted according to the
RWZone
argument. Formats are as defined by
the standard C library function
strftime()
. The default format is the date
followed by the time:
"%x %X"
.
RWBooleanbetween(const RWTime& a, const RWTime& b) const;
Returns
TRUE
if
RWTime
is between
a
and
b
, inclusive.
size_t binaryStoreSize() const;
Returns the number of bytes necessary to store the object using the global
function
RWFile& operator<<(RWFile&, const RWTime&);
int compareTo(const RWTime* t)
const;
Comparison function, useful for sorting times. Compares self to the
RWTime
pointed to by
t
and returns:
0 if self == *
t
;
1 if self > *
t
;
–1 if self < *
t
.