Re: PACKAGE Proposal: Date_Calendar

From: Date: Mon, 11 Aug 2003 06:17:22 +0000
Subject: Re: PACKAGE Proposal: Date_Calendar
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19500@lists.php.net to get a copy of this message
Tomas V.V.Cox wrote:
I personally love the calendar stuff Richy developed for the pear web: http://pear.php.net/package-search.php It really rocks.
It's a bit tempremental on mozilla the << forward/ >> back links dont work for me, and the dialog closes when I select the pulldowns (not the arrow bit.) Regards alan
Tomas V.V.Cox On Saturday, August 9, 2003 20:17, Harry Fuecks wrote:
Following on from the discussion here: http://marc.theaimsgroup.com/?l=pear-dev&m=106043809425575&w=2
Would like to propose Date_Calendar, for building calendar data structures. They are designed to make building calendars as easy as possible, while completely seperating the logic from user interface. They could be used in rendering HTML, WML, PHP-GTK, command line output or whatever you like.
Right now they're not prepared for PEAR (no package.xml or use of PEAR Error) but they're in a stable form. What to get the approval first before continuing.
Beginning with some examples first;
1. Shows all the classes in action, from Years down to Seconds http://www.phppatterns.com/code/Date_Calendar/docs/examples/1.phps http://www.phppatterns.com/code/Date_Calendar/docs/examples/1.php
2. Shows Month being used to build Weeks then Days http://www.phppatterns.com/code/Date_Calendar/docs/examples/2.phps http://www.phppatterns.com/code/Date_Calendar/docs/examples/2.php
3. Shows Month being used to build Days (bypassing the Week) http://www.phppatterns.com/code/Date_Calendar/docs/examples/3.phps http://www.phppatterns.com/code/Date_Calendar/docs/examples/3.php
The source for classes themselves can be see at;
http://www.phppatterns.com/code/Date_Calendar/
For the PEAR release I'll probably reduce the number of files to avoid the pain of require_once().
The source code is fully documented but I'll come up with more examples and documentation for the release.
One thing to be aware of is they rely on Unix timestamps. This helps when you need to perform database queries but means your calendar will only run up to 2038 for a 32bit OS.
PS: it that the right namespace? Or should it be DateAndTime?
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#19500) next »