Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Class template dst_adjustment_offsets

boost::date_time::dst_adjustment_offsets — Structure which holds the time offsets associated with daylight savings time.


// In header: <boost/date_time/time_zone_base.hpp>

template<typename time_duration_type> 
class dst_adjustment_offsets {
  // construct/copy/destruct
  dst_adjustment_offsets(const time_duration_type &, 
                         const time_duration_type &, 
                         const time_duration_type &);

  // public data members
  time_duration_type dst_adjust_;  // Amount DST adjusts the clock eg: plus one hour. 
  time_duration_type dst_start_offset_;  // Time past midnight on start transition day that dst starts. 
  time_duration_type dst_end_offset_;  // Time past midnight on end transition day that dst ends. 


Template Parameters

  1. typename time_duration_type

    A type used to represent the offset

dst_adjustment_offsets public construct/copy/destruct

  1. dst_adjustment_offsets(const time_duration_type & dst_adjust, 
                           const time_duration_type & dst_start_offset, 
                           const time_duration_type & dst_end_offset);