Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template us_dst_trait

boost::date_time::us_dst_trait — Specification for daylight savings start rules in US.

Synopsis

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

template<typename date_type> 
struct us_dst_trait {
  // types
  typedef                  ;          
  typedef                        ;                
  typedef                         ;                 
  typedef date_time::nth_kday_of_month<    ;        
  typedef date_time::first_kday_of_month<  ;          
  typedef date_time::first_kday_of_month<  ;
  typedef date_time::last_kday_of_month<   ;  

  // public static functions
   ();
   ();
   ();
   ();
   ();
   ();
  int ();
  int ();
  int ();
};

Description

This class is used to configure dst_calc_engine template typically as follows:

boost::date_time::dst_calc_engine<

This generates a type suitable for the calculation of dst transitions for the United States. Of course other templates can be used for other locales.

us_dst_trait public static functions

  1.  ();
  2.  ( y);
  3.  ();
  4.  ( y);
  5.  ( year);
  6.  ( year);
  7. int ();
  8. int ();
  9. int ();

PrevUpHomeNext