time_zone_rule


The os_time_zone_rule class is the abstract base class of all time zone rules.

Library

Time<ToolKit>

Declaration

#include <ospace/time/rule.h>

class os_time_zone_rule

Interface

Destructor
~os_time_zone_rule()
Destructor.
<
bool operator<( const os_time_zone_rule& rule ) const
Returns true if this rule applies to a time range before rule' s time range.
adjustment
const os_time_period& adjustment() const
Returns the dst adjustment value for this rule.
end_point
void end_point( const os_calendar_date& point )
Sets the ending time and date for this rule to point .
end_point
const os_calendar_date& end_point() const
Returns the ending time and date for this rule.
end_year
os_year_t end_year() const
Returns the last year this rule is in effect. If zero, the rule does not expire.
end_year
void end_year( os_year_t year )
Sets the last year this rule is effective to year . If year is zero, the rule does not expire.
is_open_ended
bool is_open_ended() const
Returns true if the rule has no expiration year.
print
void print( ostream& stream ) const
Prints to stream .
start_point
const os_calendar_date& start_point() const
Returns the starting time and date for this rule.
start_point
void start_point( const os_calendar_date& point )
Sets the starting time and date for this rule to point .
start_year
void start_year( os_year_t year )
Sets the first year this rule is effective to year .
start_year
os_year_t start_year() const
Returns the first year this rule is in effect.

Non-Member Functions

<<
ostream& operator<<( ostream& stream , const os_time_zone_rule& rule )
Prints rule to stream .

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.