> >
> > This is what my conclusion is from the discussion.
> > Use the following modules for dates and times
> >
> >    Class::Date
> >    Date::Parse
> >    Date::Format
>
> Can anyone explain what these 3 modules gain me over the 1 module
> Time::Piece?
>

Without haveing used one of those all, just by reading the docs, I would say
what's missing in Time::Piece is the nice operator overloading of + and -
e.g.


  $date2    = $date+'3Y 2D';   # 3 Years and 2 days
   $date3    = $date+[1,2,3];   # $date plus 1 year, 2 months, 3 days
  $date4    = $date+'3-1-5'    # $date plus 3 years, 1 months, 5 days

Of course that could be done with Time::Piece, but you have to create to
objects. On the other side Time::Piece seems to have much more nicely output
format methods.

Not sure if Date::Parse has any more features then strptime ?

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


Reply via email to