Won’t the date generator functions allow you to do this? It has been a long time since I looked at these but I seem to recall functions that would allow the implementation of the function you want. Take a look at the documentation.
Larry
From: MM
Sent: Friday, May 30, 2014 11:07 AM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] date_time: nth friday of month
Is anyone familiar with date_time internals who could help here?
Rds,
On 24 May 2014 02:07, MM wrote:
Hello,
Is there an object that encodes "second friday of month", rather than "second friday of april"?
Then you would pass to it month + year to get a date?
If not, how would I implement such a type? Extend nth_day_of_the_week_in_month?
Thanks,
--------------------------------------------------------------------------------
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users