Tools.h++ Manual

104011 Tandem Computers Incorporated 21-189
21
unsigned second() const;
Returns the second; local time or UTC (GMT).
unsigned long seconds() const;
Returns the number of seconds since 00:00:00 January 1, 1901 UTC.
Static public
member functions
static RWTime beginDST(unsigned year,
const RWZone& zone =
RWZone::local());
Return the start of Daylight Savings Time (DST) for the given
year
, in the
given time zone. Returns an “invalid time” if DST is not observed in that year
and zone.
static RWTime endDST(unsigned year, const
RWZone& = RWZone::local());
Return the end of Daylight Savings Time for the given
year
, in the given time
zone. Returns an “invalid time” if DST is not observed in that year and zone.
Related global operators
RWTime operator+(const RWTime& t,
long s );
RWTime operator+(long s, const
RWTime& t);
Returns a
RWTime s
seconds greater than
t
.
RWTime operator-(const RWTime& t,
long s );
Returns a
RWTime s
seconds less than
t
.
RWBoolean operator<(const RWTime& t1,
const RWTime& t2);
Returns
TRUE
if
t1
is less than
t2
.
RWBoolean operator<=(const RWTime& t1,
const RWTime& t2);
Returns
TRUE
if
t1
is less than or equal to
t2
.