SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
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

◆ begin_

RWDaylightBoundary RWDaylightRule::begin_

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

◆ end_

RWDaylightBoundary RWDaylightRule::end_

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

◆ firstYear_

short RWDaylightRule::firstYear_

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

◆ next_

const RWDaylightRule* RWDaylightRule::next_

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

◆ observed_

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 © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.