RE: [PEAR-DEV] Date package for PEAR

From: Date: Wed, 29 May 2002 09:10:58 +0000
Subject: RE: [PEAR-DEV] Date package for PEAR
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6579@lists.php.net to get a copy of this message
> I'm sure manipulation can be easily done with Date.php, now I'm > searching for a validate method with no success. Any idea how to > validate a date and if a date is in a range with Calc or Date? This class is too big (Date.php) ;)) For your question, no i don't have any idea how. > > Having one big date package isn't going with the validation > class, right ? > > Please note that big package != one big class file. For the date > validation I could use checkdate and timestamps for doing the > validation > but we have to take the decision if we would like to check dates for > dates out 1970-2038 with no other dependency or use Date/Calc classes > for doing a more heavy but complete validation. I'd go for the complete validation. > > > Advantages: > > > > > > 1) Have php4/pear/Date/(Calc|Human).php out of php4 repo > > > 2) Have a good and complete Date package > > > 3) Avoid dependencies in the actual pear/Date/ package > > > > > > I'm going to do it in the next 5 minutes if there is no > > > objections (just > > > kidding..) > > > > Dictator ! ;)) > > > > Hehe :-p > > Tomas V.V.Cox >

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