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::eu_dst_trait< date_type > Struct Template Reference

Rules for daylight savings start in the EU (Last Sun in Mar) More...

#include <local_timezone_defs.hpp>

Inheritance diagram for boost::date_time::eu_dst_trait< date_type >:

Public Types

typedef date_type::day_of_week_type day_of_week_type
 
typedef date_type::month_type month_type
 
typedef date_type::year_type year_type
 
typedef
date_time::last_kday_of_month
< date_type > 
start_rule_functor
 
typedef
date_time::last_kday_of_month
< date_type > 
end_rule_functor
 

Static Public Member Functions

static day_of_week_type start_day (year_type)
 
static month_type start_month (year_type)
 
static day_of_week_type end_day (year_type)
 
static month_type end_month (year_type)
 
static int dst_start_offset_minutes ()
 
static int dst_end_offset_minutes ()
 
static int dst_shift_length_minutes ()
 
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>
struct boost::date_time::eu_dst_trait< date_type >

Rules for daylight savings start in the EU (Last Sun in Mar)

These amount to the following:

  • Start of dst day is last Sunday in March
  • End day of dst is last Sunday in Oct
  • Going forward switch time is 2:00 am (offset 120 minutes)
  • Going back switch time is 3:00 am (off set 180 minutes)
  • Shift duration is one hour (60 minutes)

Member Typedef Documentation

template<class date_type >
typedef date_type::day_of_week_type boost::date_time::eu_dst_trait< date_type >::day_of_week_type
template<class date_type >
typedef date_time::last_kday_of_month<date_type> boost::date_time::eu_dst_trait< date_type >::end_rule_functor
template<class date_type >
typedef date_type::month_type boost::date_time::eu_dst_trait< date_type >::month_type
template<class date_type >
typedef date_time::last_kday_of_month<date_type> boost::date_time::eu_dst_trait< date_type >::start_rule_functor
template<class date_type >
typedef date_type::year_type boost::date_time::eu_dst_trait< date_type >::year_type

Member Function Documentation

template<class date_type >
static int boost::date_time::eu_dst_trait< date_type >::dst_end_offset_minutes ( )
inlinestatic
template<class date_type >
static int boost::date_time::eu_dst_trait< date_type >::dst_shift_length_minutes ( )
inlinestatic
template<class date_type >
static int boost::date_time::eu_dst_trait< date_type >::dst_start_offset_minutes ( )
inlinestatic
template<class date_type >
static day_of_week_type boost::date_time::eu_dst_trait< date_type >::end_day ( year_type  )
inlinestatic
template<class date_type >
static month_type boost::date_time::eu_dst_trait< date_type >::end_month ( year_type  )
inlinestatic
template<class date_type >
static day_of_week_type boost::date_time::eu_dst_trait< date_type >::start_day ( year_type  )
inlinestatic
template<class date_type >
static month_type boost::date_time::eu_dst_trait< date_type >::start_month ( year_type  )
inlinestatic

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