HydraExpress 4.6 |
HydraExpress C++ API Reference Guide |
|
Encapsulates the month
, week
, weekday
, and minute
of a Daylight Saving Time rule.
More...
#include <rwsf/core/TimeZone.h>
Public Attributes | |
int | month_ |
int | week_ |
int | weekday_ |
int | minute_ |
DaylightBoundary is a simple data structure that captures the month
, week
, weekday
, and exact minute
of a DST rule boundary. The boundary can either be when DST is enabled, or when DST is disabled.
DaylightBoundary is used primarily to make DaylightRule structures when creating a DST rule set (see the struct description of DaylightRule for a guide on how to create DST rule sets).
Since this is a simple data structure, a DaylightBoundary can be created inline using { }
notation:
// Creates a boundary on January 1 at 12:00 AM. DaylightBoundary b1 = {0, 0, 0, 0}; // Creates a boundary on Sunday of the second week in March at 2:00 AM. DaylightBoundary b2 = {2, 1, 0, 120}; // Creates a boundary on October 10 at 12:00 PM. DaylightBoundary b3 = {10, -1, 10, 720};
Minutes after 12:00 AM, from (0 - 1439)
. For example, 120 = 2 AM
.
The month from (0 - 11)
, where 0
= January
.
A week of the month from (0 - 4)
, or -1
if the weekday_
field represents a day within the month.
A day of the week from (0 - 6)
, where 0
= Sunday
, or, if the week_
field is -1
, a day of the month from (1 - 31)
.
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.