20 lines
338 B
C++
20 lines
338 B
C++
#include "meetup.h"
|
|
|
|
namespace meetup {
|
|
|
|
using namespace boost::gregorian;
|
|
typedef nth_day_of_the_week_in_month nth_dow;
|
|
|
|
|
|
scheduler::scheduler(int month, int year)
|
|
: month_(month)
|
|
, year_(year)
|
|
{
|
|
}
|
|
|
|
date_t scheduler::monteenth() const
|
|
{
|
|
return nth_dow(/*nth_dow::first*/nth_dow::second, Monday, month_).get_date(year_);
|
|
}
|
|
|
|
}
|