SourcePro® API Reference Guide

 
List of all members | Public Attributes
RWDaylightRule Struct Reference

Struct that defines daylight saving time rules. More...

#include <rw/tools/zone.h>

Public Attributes

RWDaylightBoundary begin_
 
RWDaylightBoundary end_
 
short firstYear_
 
const RWDaylightRulenext_
 
char observed_
 

Detailed Description

The RWDaylightRule struct defines daylight saving time rules and is passed to RWZoneSimple's constructor. It can define a single rule for all years or the head of a chain of rules going backwards in time.

RWDaylightRule has no constructors. The data members of this structure are as follows:

Member Data Documentation

RWDaylightBoundary RWDaylightRule::begin_

Indicates the time of year, to the minute, when DST begins during this period.

RWDaylightBoundary RWDaylightRule::end_

Indicates the time of year, to the minute, when standard time resumes during this period.

short RWDaylightRule::firstYear_

Four-digit representation of the year in which this rule first goes into effect.

const RWDaylightRule* RWDaylightRule::next_

Points to the next rule in a chain that continues backwards in time.

char RWDaylightRule::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
These are numeric values, as distinguished from "1" and "0".

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.