Re: Calendar Class

From: Date: Fri, 13 Oct 2000 20:33:20 +0000
Subject: Re: Calendar Class
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-20077@lists.php.net to get a copy of this message
Mikhail Zabaluev wrote: > > Hello Monte, > > On Fri, Oct 13, 2000 at 10:15 -0500, Monte Ohrt wrote: > > > > Hi, > > > > I'm submitting a new class to the Pear repository, and I'd like to get > > some feedback from some of you first, to be sure things are in order. > > > > The class (DATE_Calendar) is used for comparing and calculating calendar > > dates, and formulating arrays of dates for traditional calendar display. > > The unique aspect of the class is that it does not rely on 32-bit system > > limitations, so dates that are pre 1970 or post 2038 work as expected. > > > > Class Source Pretty: > > http://www.phpinsider.com/calendar/Calendar.phps > > Class Source Plain: > > http://www.phpinsider.com/calendar/Calendar.txt > > > > Here is a working example of using the class to display a calendar: > > Example: > > http://www.phpinsider.com/calendar/showCalendarMonth.php > > > > Here is a script that tests the raw functionality of the class: > > http://www.phpinsider.com/calendar/test.php > > > > Let me know what you think. If all looks well, I'll commit it. > > This is good, except that get_Nth_Xday_of_month redundancy that isn't > worth interpreter cycles IMO. I contemplated writing something like this > for my needs, plus some visualizer framework. Yes, I pondered this myself. I thought it would be nice to have an alternative in the class to make the code more readable, sacrificing one step in the class interpretation. Any other views on this? It can easily be removed or avoided altogether. > > And wait, aren't public method names in PEAR preferred to be without > underscores, words accented by capital letters? The PEAR documentation states that underscores are needed due to the lack of name spaces in PHP. Check here under "Class Names": http://pear.php.net/doc/pear.html > > -- > Stay tuned, > MhZ > mailto:mookid@sigent.ru > ----------- > On a clear disk you can seek forever. > > -- > PHP Extension and Add-on Repository (PEAR) mailing list. > Documentation can be found at http://pear.php.net/doc/pear.html > To unsubscribe, e-mail: php-pear-unsubscribe@lists.php.net from the > mail address you subscribed with. -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.general (#20077) next »