HydraExpress™ C++ API Reference Guide

Product Documentation:
   HydraExpress C++
Documentation Home
List of all members | Public Attributes
rwsf::DaylightBoundary Struct Reference

Encapsulates the month, week, weekday, and minute of a Daylight Saving Time rule. More...

#include <rwsf/core/TimeZone.h>

Public Attributes

int minute_
 
int month_
 
int week_
 
int weekday_
 

Detailed Description

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};

Member Data Documentation

int rwsf::DaylightBoundary::minute_

Minutes after 12:00 AM, from (0 - 1439). For example, 120 = 2 AM.

int rwsf::DaylightBoundary::month_

The month from (0 - 11), where 0 = January.

int rwsf::DaylightBoundary::week_

A week of the month from (0 - 4), or -1 if the weekday_ field represents a day within the month.

int rwsf::DaylightBoundary::weekday_

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 © 2019 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is registered trademark of Rogue Wave Software, Inc. in the United States and other countries, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.