Tools.h++ Manual
104011 Tandem Computers Incorporated 21-235
21
virtual void getBeginDaylight(struct tm*) const = 0;
virtual void getEndDaylight (struct tm*) const = 0;
Return with the
struct tm
argument set to the (local) time that daylight
savings time begins, or ends, for the year indicated by the
tm_year
member
passed in. If daylight savings time is not observed, the
struct tm
members
are all set to a negative value.
Note – that in the southern hemisphere, daylight savings time ends at an
earlier date than it begins.
virtual RWCString timeZoneName() const = 0;
virtual RWCString altZoneName() const = 0;
Return the name of (respectively) the standard and daylight savings time zones
represented, such as “PST” and “PDT”.
Static public
member functions
static const RWZone& local();
Returns a reference to an
RWZone
representing local time, with daylight
savings time if observed. This is used as the default argument value for
RWDate
and
RWTime
functions that take an
RWZone.
static const RWZone& standard();
Returns a reference to an
RWZone
representing standard local time, with no
daylight savings time corrections.
static const RWZone& utc()
;
Returns a reference to an
RWZone
representing UTC (GMT) universal time.
static const RWZone* local(const RWZone*)
static const RWZone* standard(const RWZone*)
These functions allow the values returned by the other functions above to be
set. Each returns the previous value.
static constRWDaylightRule* dstRule(DstRule = NoAm)
;
Function
dstRule()
is provided for convenience in constructing
RWZoneSimple
instances for time zones in which common daylight savings
time rules are obeyed. Currently two such rule systems are provided,
NoAm
for
the U.S.A. and Canada, and
WeEu
for most of Western Europe. The result of
calling
dstRule()
is normally passed to the
RWZoneSimple
constructor.