NYCPHP Meetup

NYPHP.org

[nycphp-talk] Recurring Monthly Calculations

Mitch Pirtle mitchy at spacemonkeylabs.com
Fri Jun 25 12:28:30 EDT 2004


Hans Zaunere wrote:

>Hey all,
>
>I needed to write a function that will tell me the dates of future
>events that recurr monthly by day of month.  So for instance, "4th
>Tuesday of the month for the next 6 months"
>  
>

Out of curiosity, why not use PEAR::Calendar?

    http://pear.php.net/manual/en/package.datetime.php

Seems to enable the kind of logical loops that you are shooting for, right?

-- Mitch



More information about the talk mailing list