Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template first_kday_of_month

boost::date_time::first_kday_of_month — Useful generator functor for finding holidays and daylight savings.

Synopsis

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

template<typename date_type> 
class first_kday_of_month : public  {
public:
  // types
  typedef         ;   
  typedef  ;
  typedef        ;      
  typedef         ;       
  typedef         ;   

  // construct/copy/destruct
  (, );

  // public member functions
   () ;
   () ;
   () ;
   () ;
};

Description

Similar to nth_kday_of_month, but requires less paramters

first_kday_of_month public construct/copy/destruct

  1. ( dow,  m);
    Specify the first 'Sunday' in 'April' spec.

    Parameters:

    dow

    The day of week, eg: Sunday, Monday, etc

    m

    The month of the year, eg: Jan, Feb, Mar, etc

first_kday_of_month public member functions

  1.  ( year) ;
    Return a concrete date when provided with a year specific year.
  2.  () ;
  3.  () ;
  4.  () ;
    Returns string suitable for use in POSIX time zone string.

    Returns a string formatted as "M4.1.0" ==> 1st Sunday in April.


PrevUpHomeNext