Re: PEAR::Date

From: Date: Thu, 22 May 2003 00:59:28 +0000
Subject: Re: PEAR::Date
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16603@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joseph Lee, el miércoles 21 de mayo a las 18:46 me escribiste: > "to having a new additional maintainer for PEAR::Date." > > +1 : Last release in Oct 2002 seems a long time... > > Current stable version 1.3 contains a bug on the constructor: > $DOB=new Date('1969-08-12'); > // returns January 1 1970 00:00:00 (start of Unix Epoch time) > > I have sent a proposed fix to Baba a few months ago, but still waiting > for a release. > > I have been working on a modified version of PEAR::Date which I have > added some useful features (that do not restrict to Epoch time): > > $tDiff = Date::Diff($Date1, $Date2, $timeUnitType='s'); This is implemented in Date_Span in CVS. You can make a: $diff =& new Date_Span($date1, $date2); echo $diff->toSeconds(); > $Date2 = Date::Add($Date1, $timeUnit, $timeUnitType='s'); This too: $date =& new Date(); $date->addSpan(new Date_Span($seconds)); > $myAge = Date::getAge($DOB=false); I don't understand this. > Is there anyone working on a similar methods above? If not, I wish to > submit an update of my code to PEAR. Yes :) - -- LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation - ------------------------------------------------------------------------ E-Mail / JID: luca@lugmen.org.ar GPG Fingerprint: D9E1 4545 0F4B 7928 E82C 375D 4B02 0FE0 B08B 4FB2 GPG Key: gpg --keyserver pks.lugli.org.ar --recv-keys B08B4FB2 - ------------------------------------------------------------------------ Law of Selective Gravity: An object will fall so as to do the most damage. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+zCDwSwIP4LCLT7IRAs7HAJ92hviKIweCUMKBWEFGowlATxrcUQCfXX9T k5XInkx4N7KjLBbAgGkpoUU= =4jrG -----END PGP SIGNATURE-----

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