> -----Original Message-----
> From: Garrett, Philip (MAN-Corporate)
[mailto:[EMAIL PROTECTED] 
> Sent: Saturday, April 22, 2006 6:56 PM
> To: datetime@perl.org
> Subject: RE: from_epoch for DateTime::LazyInit?
> 
> > -----Original Message-----
> > From: Rick Measham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, April 05, 2006 8:16 PM
> > To: Garrett, Philip (MAN-Corporate)
> > Cc: datetime@perl.org
> > Subject: Re: from_epoch for DateTime::LazyInit?
> > 
> > Garrett, Philip (MAN-Corporate) wrote:
> > > Are there any plans to add a from_epoch constructor for 
> > > DateTime::LazyInit? The module looks really useful for me, but
since 
> > > I create almost all my DateTime objects from epoch times, I can't 
> > > use it.
> >
> > No plans at all .. but if you provide a patch that looks like it
> > will fit within the goals of LI, I'll have a look.
>
> Wanna give this a try? I added support for all the other constructors
> as well.

Whoops, the patch I sent earlier is botched. This one should be better.
One thing I forgot was to update the POD -- I'll try to get that later.

I also added an overloadable class method __datetime_class() so that if
you want to use a subclass of DateTime (as I do) then you can.

Philip

Attachment: DateTime-LazyInit.patch
Description: DateTime-LazyInit.patch

Reply via email to