Tools.h++ Class Reference

Table Of Contents
Constructs an RWZoneSimple instance in which daylight-saving time is not observed.
Argument tzoff is the offset from UTC (in seconds, positive if west of 0 degrees longitude)
and tzname is the name of the zone.
RWZoneSimple(RWZone::StdZone zone,
const RWDaylightRule* rule);
Constructs an RWZoneSimple instance in which offsets and names are specified by the
StdZone argument. Daylight-saving time is computed according to the rule argument, if
non-zero; otherwise, DST is not observed.
struct RWDaylightRule
The RWDaylightRule struct passed to RWZoneSimple's constructor can be a single rule for all
years or can be the head of a chain of rules going backwards in time.
RWDaylightRule is a struct with no constructors. It can be initialized with the syntax used in the
Examples section above. The data members of this structure are as follows:
struct RWExport RWDaylightRule {
RWDaylightRule const* next_;
short firstYear_;
char observed_;
RWDaylightBoundary begin_;
RWDaylightBoundary end_;
}
RWDaylightRule const*
next_;
Points to the next rule in a chain which continues backwards in time.
short
firstYear_;
Four digit representation of the year in which this rule first goes into effect.
char
observed_;
A boolean value that can be used to specify a period of years for which daylight-saving time
is not observed.
1 = Daylight-saving time is in effect during this period
0 = Daylight-saving time is not in effect during this period
(Note that these are numeric values as distinguished from '1' and '0'.)
RWDaylightBoundary
begin_;
This structure indicates the time of year, to the minute, when DST begins during this period.