Re: [PEAR::DATE] Using dates, timestamps...

From: Date: Sat, 09 Oct 2004 07:52:32 +0000
Subject: Re: [PEAR::DATE] Using dates, timestamps...
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14827@lists.php.net to get a copy of this message
Thanks ! Yep I think use PEAR:::Date, because I use PEAR packages (DB and HTML_QuickForm) too, but I the manual concerning this package is... very light. Does anyone know a better implemented documentation about PEAR:Date ? "Justin Patrin" <papercrane@gmail.com> a écrit dans le message de news:432beae041008232110572cde@mail.gmail.com... > On Sat, 9 Oct 2004 00:50:52 +0200, Mos <mos_fr@yahoo.fr> wrote: > > Hi everybody ! > > > > Is there a class in PEAR projects available to work with dates/times with > > different database systems (MySQL, PostgreSQL...) ? > > > > I mean PEAR:DB allow to work with several database. How to save date and > > time data in theses DBMS ? TimeStamps or other system ? > > > > Sure... there's MDB if you want absolutely full DB independent dates, > but it uses strings to do it. Or you can use the dates in the DB and, > if it's a formatted date (not a mysql timestamp), you can just use > strtotime() to make it a Unix timestamp. Or you can use the PEAR::Date > package to do DB independant date manipulations (like with strtotime, > but doesn't have the limitations of a unix timestamp). Or you use > DB_DataObject. DB_DataObject_FormBuilder has some built-in date > callback functions which allow you to convert dates. > > Lots of options. ;-) > > -- > paperCrane --Justin Patrin--

« previous php.pear.general (#14827) next »