/---  On Tue,  Sep 11,  2001  at 06:29:03AM  +0200, Winfried  Truemper
wrote:
| > What does your module do that Date::ICal doesn't?
|
| I  hope that  Date::ICal does  all I  want so  I can  save the  time
| porting
| routines from an old perl script. :)
|
| What I  want to do  is "next month"  in an object  oriented fashion.
| ICal
| would allow me to do this:
|
|   my $month = $ical->month();
|   $month += 1; # may become 13
|   $ical->month($month); # one could add this functionality

use Class::Date qw(date);

$nextmonth = ($date+'1M')->month;

As I  see there are  a lot  of OO date  modules available for  perl. I
know  the following:  Time::Object,  Date::ICal,  Date::Handle and  my
module: Class::Date.  These are  too much.  When I  started developing
Class::Date  I got  a  response only  from  Matt  Sergeant, author  of
Time::Object, and  this was the only  module that I know  similar to y
module.

| Yes, this is  highly unfinished work. I will continue to  work on it
| if
| there is no other module with the same functionality yet.

Time::OO  has an  interesting syntax,  I think  other OO  modules that
works with operator  overloading has more friendly syntax.  But if you
want to  do this, then  I suppose choose  one author, contact  him and
send  him patches.  Yet Another  Time module  is (I  think) not  worth
writing...

\---

Regards,

dLux
--
Linux is like wigwam: no windows, no gates, apache inside!

Reply via email to