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
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:
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
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
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
) );
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
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