RE: instance data for DateTime derived classes

2007-03-27 Thread Jim Bacon
Take a look at how I overloaded new in DateTime::Fiscal::Retail454. I had the same problem you describe. Jim -Original Message- From: Boorstein, Daniel B [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 9:43 AM To: datetime@perl.org Subject: instance data for DateTime

RE: instance data for DateTime derived classes

2007-03-27 Thread Jim Bacon
No, you got it right, but I think a similar approach can be taken to overload a couple of key points in DT that can preserve the values then re-set them later. I used a sub-routine to do this since I had to call it from more than one constructor. Jim -Original Message- From:

Re: recurring system

2007-03-27 Thread Matthew
The documentation on D::E::Recurrence isn't helping me much. What am I doing wrong here? my $dt_start = DateTime-new( year = 2007, month = 1, day = 15, hour = 11); my $daily_at_10_30 = DateTime::Event::Recurrence-daily(hours = 10, minutes = 30); for(my $i = 0; $i 5; $i++) { print

RE: recurring system

2007-03-27 Thread Garrett, Philip \(MAN-Corporate\)
Matthew wrote: The documentation on D::E::Recurrence isn't helping me much. What am I doing wrong here? my $dt_start = DateTime-new( year = 2007, month = 1, day = 15, hour = 11); my $daily_at_10_30 = DateTime::Event::Recurrence-daily(hours = 10, minutes = 30); for(my $i = 0; $i

Re: recurring system

2007-03-27 Thread Flavio S. Glock
There are several ways to do this. For example: use DateTime::Event::Recurrence; use strict; my $daily_at_10_30 = DateTime::Event::Recurrence-daily( hours = 10, minutes = 30); my $iter = $daily_at_10_30-iterator( after = DateTime-new( year = 2007, month = 1, day = 15, hour = 11 ) );

Re: instance data for DateTime derived classes

2007-03-27 Thread Rick Measham
Boorstein, Daniel B wrote: I realize this is my problem since I broke encapsulation, but I'm wondering if others have dealt with this already. Is there a designated means for derived classes to add custom instance data? I've perused the docs, but didn't see anything specific for authors of

Re: instance data for DateTime derived classes

2007-03-27 Thread Dave Rolsky
On Wed, 28 Mar 2007, Rick Measham wrote: Boorstein, Daniel B wrote: I realize this is my problem since I broke encapsulation, but I'm wondering if others have dealt with this already. Is there a designated means for derived classes to add custom instance data? I've perused the docs, but didn't