HydraExpress™ C++ API Reference Guide

 
Loading...
Searching...
No Matches
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};
Encapsulates the month, week, weekday, and minute of a Daylight Saving Time rule.
Definition TimeZone.h:47

Member Data Documentation

◆ minute_

int rwsf::DaylightBoundary::minute_

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

◆ month_

int rwsf::DaylightBoundary::month_

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

◆ week_

int rwsf::DaylightBoundary::week_

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

◆ weekday_

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