NYCPHP Meetup

NYPHP.org

[nycphp-talk] Recurring Monthly Calculations

Kshitij Bedi Kbedi at inta.org
Fri Jun 25 12:53:57 EDT 2004


I think this should do what you are trying to achieve 
Its not very clean though

-----Original Message-----
From: Hans Zaunere [mailto:hans not junk at nyphp.com]
Sent: Friday, June 25, 2004 12:46 PM
To: NYPHP Talk
Subject: RE: [nycphp-talk] Recurring Monthly Calculations



> >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?

Well, yes and no.  Their function is limited, ie it won't return a list
of dates that I could tell.  Plus I didn't want to load up 100K+ of code
for something so small :)

Thanks for the links guys... my implmentation is actually very similar
to the VBA script posted (hark!)

H

_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: reccurr.php
Type: application/octet-stream
Size: 1216 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040625/a76e2f91/attachment.obj>


More information about the talk mailing list