HydraExpress™ C++ 2020 |
HydraExpress™ C++ API Reference Guide |
Product Documentation: HydraExpress C++ Documentation Home |
Represents a single Daylight Saving Time rule. More...
#include <rwsf/core/TimeZone.h>
Public Attributes | |
DaylightBoundary | begin_ |
DaylightBoundary | end_ |
short | firstYear_ |
DaylightRule const * | next_ |
char | observed_ |
DaylightRule is a structure that declares a single Daylight Saving Time (DST) rule in a DST ruleset. A full ruleset is a set of linked DaylightRule structures, moving backward in time from the most recent to the first year the daylight savings time was put into effect.
A single DaylightRule holds data (in the specified order) for:
0
to completely disable DST, 1
to keep it on).Here's an example of a daylight ruleset for U.S. DST rules (remember, the daylight boundaries use 0-based indices, so a month of 0
= January
):
So, use of the rule usRule2007
will result in a DST ruleset that captures all DST rules in U.S. history, using the correct rule for the year requested.
DaylightBoundary rwsf::DaylightRule::begin_ |
This structure indicates the time of year, to the minute, when DST begins during this period (See struct description for DaylightBoundary).
DaylightBoundary rwsf::DaylightRule::end_ |
This structure indicates the time of year, to the minute, when standard time resumes during this period (See struct description for DaylightBoundary).
short rwsf::DaylightRule::firstYear_ |
Four-digit representation of the year in which this rule first goes into effect.
DaylightRule const* rwsf::DaylightRule::next_ |
Points to the next rule in a chain that continues backwards in time.
char rwsf::DaylightRule::observed_ |
A boolean value used to specify a period of years for which Daylight Saving Time is not observed.
1
- Daylight Saving Time is in effect during this period0
- Daylight Saving Time is not in effect during this periodnumeric
values, not the ASCII characters '1'
and '0'
.)
Copyright © 2020 Rogue Wave Software, Inc. All Rights Reserved. |