Tools.h++ Class Reference

Table Of Contents
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+=(unsigned long s);
Add s seconds to self, returning self.
RWTime&
operator-=(unsigned 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".
The exact format of the date and time returned is dependent upon the implementation of
strftime() available. For more information, look under RWLocale.
RWCString
asString(char* format,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().
RWBoolean
between(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