Re: Proposed new package: Time.
| From: | Leandro Lucarella | Date: | Fri, 21 Feb 2003 13:12:30 +0000 |
| Subject: | Re: Proposed new package: Time. | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13543@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wolfram Kriesing, el viernes 21 de febrero a las 10:36 me escribiste:
> Leandro Lucarella wrote:
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >I've made a class for managing times that I want to add to PEAR.
> >
> >Simple example:
> >$time =& new Time('20:40');
> >echo $time->toString()."\n";
> >$interval =& $time->interval(array(19, 40));
> >echo $interval->toString()."\n";
> >$interval->add('0:5:10');
> >echo $interval->toString()."\n";
> >var_dump($interval->greater($time));
> >var_dump($interval->equal(array(1, 5, 10)));
> >
> >Shows:
> >20:40:00
> >01:00:00
> >01:05:10
> >bool(false)
> >bool(true)
> >
> >Complex example:
>
> >>http://svn.llucax.hn.org:81/svn/hooks/tronco/examples/time.php
> >
> >Source code:
> >http://svn.llucax.hn.org:81/svn/hooks/tronco/lib/Time.php
>
> i dont get to see those pages, can you please check the links!
The links are OK, but here you have an alternative URL:
http://www.llucax.hn.org/pear/lib/Time.php
http://www.llucax.hn.org/pear/examples/time.php
- --
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
- ------------------------------------------------------------------------
Nunca he encontrado una persona tan ignorante que no pueda aprender algo de
ella.
-- Galileo Galilei. (1564-1642).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+ViW9SwIP4LCLT7IRAlhhAJ9r+MShNb/ED9kMlnIyfBmFJv8JgACghwRV
4FkOZdpTLLySH2V52SZrJsQ=
=JNFA
-----END PGP SIGNATURE-----