> -----Original Message-----
> From: Dana Hudes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 09, 2004 7:23 PM
> To: Aran Deltac
> Subject: Re: [RFC] PHP::DateTime
> 
> why do we need Yet Another DateTime module?
> Is there some functionality missing in Dave Rolsky's DateTime, how about
> Date::Calc ...

There is nothing wrong at all with the current datetime modules (quite to
the contrary in my opinion), and this module is in no way a replacement for
them... This module internally uses existing DateTime modules.  My intent
behind this module is to write a set of functions that act just like the
equivalent PHP functions by wrapping around existing DateTime module
functions, and where the functionality does not exist in an existing module,
write the code.

For example, let's say there is a database that has until this point been
managed by a PHP application.  And let's assume that the application allows
there users to specify the date format and timezone of the dates that are
displayed.  Well, this module (php::datetime) makes it really easy to bring
in that PHP-specific date format and time-zone data and use it in perl
without a bunch of munging and wasting time.

This module is not inspired out of excess time on my hands - I've had some
real world work where I've had to integrate with PHP apps, most notably
phpBB, and these functions have come in handy.

Aran

> On Tue, 9 Mar 2004, Aran Deltac wrote:
> 
> > Hey everyone, I've been working on some PHP (I'd rather always do Perl,
> but
> > oh well) and I've had to integrate a Perl site with a PHP site.  So,
> being
> > that Perl is the master glue I've had to write a few Perl modules that
> > mimmick some PHP behavior.  This is just the beginning of several things
> I
> > have lined up along the same goal.  In any case, here's the actual
> module:
> >
> > http://bluedevbox.com/DateTime.pm.txt
> > (I know, I have not added pod yet, or even any comments...  :P  )
> >
> > The intent is to mimmick all of PHP's Date/Time functions as documented
> > here:
> >
> > http://www.php.net/manual/en/ref.datetime.php
> >
> > Now, I've only implemented 4 of the 13 PHP Date/Time functions.  And,
> they
> > are not complete or tested in different locales.
> >
> > So, watcha think?  Is my namespace good?  PHP::DateTime?
> >
> > Thanks for any suggestions/comments,
> >
> >   Aran
> >
> >



Reply via email to