| Home | Libraries | People | FAQ | More

## Class template dst_calc_engine

boost::date_time::dst_calc_engine — Compile-time configurable daylight savings time calculation engine.

## Synopsis

    template<typename date_type, typename time_duration_type, typename dst_traits>
    class dst_calc_engine {
    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;

      // public static functions
      time_is_dst_result
      local_is_dst(const date_type &, const time_duration_type &) ;
      bool is_dst_boundary_day(date_type) ;
      time_duration_type dst_offset() ;
      date_type local_dst_start_day(year_type) ;
      date_type local_dst_end_day(year_type) ;
    };

## Description

### `dst_calc_engine` public static functions

1.     time_is_dst_result
       local_is_dst(const date_type & d, const time_duration_type & td) ;

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

2.     bool is_dst_boundary_day(date_type d) ;

3.     time_duration_type dst_offset() ;

4.     date_type local_dst_start_day(year_type year) ;

5.     date_type local_dst_end_day(year_type year) ;

| Copyright © 2001-2005 CrystalClear Software, Inc