Tools.h++ Manual

21-188 104011 Tandem Computers Incorporated
21
void extract(struct tm*, const
RWZone& = RWZone::local())
const;
Fills all members of the
struct tm
argument, adjusted to the time zone
specified by the
RWZone
argument. If the time is invalid, the
struct tm
members are all set to -1.
Note – the encoding of struct tm members is different from that used in
RWTime and RWDate functions.
unsigned hash() const;
Returns a suitable hashing value.
unsigned hour(const RWZone& zone =
RWZone::local()) const;
Returns the hour, adjusted to the time zone specified.
unsigned hourGMT() const;
Returns the hour in UTC (GMT).
RWBoolean isDST(const RWZone& zone =
RWZone::local()) const;
Returns
TRUE
if self is during Daylight Savings Time in the time zone given by
zone, FALSE
otherwise.
RWBoolean isValid() const;
Returns
TRUE
if this is a valid time,
FALSE
otherwise.
RWTime max(const RWTime& t) const;
Returns the later time of self or
t
.
RWTime min(const RWTime& t) const;
Returns the earlier time of self or
t
.
unsigned minute(const RWZone& zone =
RWZone::local()) const;
Returns the minute, adjusted to the time zone specified.
unsigned minuteGMT() const;
Returns the minute in UTC (GMT).
void now();
Sets self to the present time.