Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWZoneSimple
RWZoneSimple RWZone
Synopsis
Description
Persistence
Examples
Constructors
struct RWDaylightRule
struct RWDaylight-Boundary
Synopsis
#include <time.h>
#include <rw/zone.h>
RWZoneSimple myZone(USCentral);
Description
RWZoneSimple is an implementation of the abstract interface defined by class RWZone. It
implements a simple daylight-saving time rule sufficient to represent all historical U.S.
conventions and many European and Asian conventions. It is table-driven and depends on
parameters given by the struct RWDaylightRule, which is described below.
Direct use of RWDaylightRule affords the most general interface to RWZoneSimple. However, a
much simpler programmatic interface is offered, as illustrated by the examples below.
Three instances of RWZoneSimple are automatically constructed at program startup, to represent
UTC, Standard, and local time. They are available via calls to the static member functions
RWZone::utc(), RWZone::standard(), and RWZone::local(), respectively.
These member functions are set up according to the time zone facilities provided in the execution
environment (typically defined by the environment variable TZ). By default, if DST is observed at