Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits > Class Template Reference

Compile-time configurable daylight savings time calculation engine. More...

#include <dst_rules.hpp>

Public Types

typedef date_type::year_type year_type
 
typedef date_type::calendar_type calendar_type
 
typedef dst_calculator
< date_type,
time_duration_type > 
dstcalc
 

Static Public Member Functions

static time_is_dst_result local_is_dst (const date_type &d, const time_duration_type &td)
 Calculates if the given local time is dst or not. More...
 
static bool is_dst_boundary_day (date_type d)
 
static time_duration_type dst_offset ()
 The time of day for the dst transition (eg: typically 01:00:00 or 02:00:00) More...
 
static date_type local_dst_start_day (year_type year)
 
static date_type local_dst_end_day (year_type year)
 

Detailed Description

template<class date_type, class time_duration_type, class dst_traits>
class boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >

Compile-time configurable daylight savings time calculation engine.

Member Typedef Documentation

template<class date_type , class time_duration_type , class dst_traits >
typedef date_type::calendar_type boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::calendar_type
template<class date_type , class time_duration_type , class dst_traits >
typedef dst_calculator<date_type, time_duration_type> boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::dstcalc
template<class date_type , class time_duration_type , class dst_traits >
typedef date_type::year_type boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::year_type

Member Function Documentation

template<class date_type , class time_duration_type , class dst_traits >
static time_duration_type boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::dst_offset ( )
inlinestatic

The time of day for the dst transition (eg: typically 01:00:00 or 02:00:00)

template<class date_type , class time_duration_type , class dst_traits >
static bool boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::is_dst_boundary_day ( date_type  d)
inlinestatic
template<class date_type , class time_duration_type , class dst_traits >
static date_type boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::local_dst_end_day ( year_type  year)
inlinestatic
template<class date_type , class time_duration_type , class dst_traits >
static date_type boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::local_dst_start_day ( year_type  year)
inlinestatic
template<class date_type , class time_duration_type , class dst_traits >
static time_is_dst_result boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::local_is_dst ( const date_type &  d,
const time_duration_type &  td 
)
inlinestatic

Calculates if the given local time is dst or not.

Determines if the time is really in DST or not. Also checks for invalid and ambiguous.

Return values
Thetime is either ambiguous, invalid, in dst, or not in dst

References boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::local_dst_end_day(), boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::local_dst_start_day(), boost::date_time::dst_calculator< date_type_, time_duration_type_ >::local_is_dst(), and boost::polygon::y().


The documentation for this class was generated from the following file: