Tools.h++ Manual

21-234 104011 Tandem Computers Incorporated
21
Enumerations
enum DstRule { NoDST, NoAm, WeEu };
Used by the static member function
dstRule()
, described below, and by
constructors for classes derived from
RWZone
.
StdZone
is provided to name the standard time zones. Its values are intended
to be passed to constructors of classes derived from
RWZone
.
Public member functions
virtual int timeZoneOffset() const = 0;
Returns the number of seconds west of UTC for standard time in this zone.
The number is negative for zones east of Greenwich, England.
virtual int altZoneOffset() const = 0;
Returns the number of seconds west of UTC for daylight savings time in this
zone.
virtual RWBoolean daylightObserved() const = 0;
Returns
TRUE
if daylight savings time is observed for this zone.
virtual RWBoolean isDaylight(const struct tm* tspec)
const = 0
;
Returns
TRUE
if the time and date represented in the
struct tm
argument is
in the range of daylight savings time for this zone. The elements of the
struct tm
argument must all be self-consistent; in particular, the
tm_wday
member must agree with the
tm_year, tm_mon
, and
tm_day
members.
enum StdZone {
NewZealand = -12, CarolineIslands, MarianaIslands,
Japan, China, Java,
Kazakh, Pakistan, CaspianSea,
Ukraine, Nile, Europe,
Greenwich, Azores, Oscar,
Greenland, Atlantic, USEastern,
USCentral, USMountain, USPacific,
Yukon, Hawaii, Bering
};