> ---------------------------------------------------------------------- > From: Rick Measham [mailto:[EMAIL PROTECTED] > Sent: Sun 4/23/2006 6:11 PM > To: Garrett, Philip (MAN-Corporate) > Cc: datetime@perl.org > Subject: Re: from_epoch for DateTime::LazyInit? > > Garrett, Philip (MAN-Corporate) wrote: > > I also had trouble with the lazyinit module not supporting overloaded > > operators, e.g. $dt1 > $dt2. > > > > To fix, I added this to the main LazyInit package. Using the method > > names as strings didn't work -- I guess overload doesn't like AUTOLOAD. > > > > use overload ( 'fallback' => 1, > > '<=>' => sub { shift->_compare_overload(@_) }, > > We're really getting way beyond the scope of DT::LI here .. it's > supposed to be completely simple front-end to creating unvalidated > DateTime objects. > > If you want to do comparisons, use the real functions rather than the > overloads, or create full DateTime objects. I'm just trying to make the DT::LI object act like a DT. Isn't that the idea? Philip
RE: from_epoch for DateTime::LazyInit?
Garrett, Philip \(MAN-Corporate\) Sun, 23 Apr 2006 16:18:59 -0700
- from_epoch for DateTime::LazyInit? Garrett, Philip \(MAN-Corporate\)
- Re: from_epoch for DateTime::LazyIn... Rick Measham
- RE: from_epoch for DateTime::LazyIn... Garrett, Philip \(MAN-Corporate\)
- RE: from_epoch for DateTime::LazyIn... Garrett, Philip \(MAN-Corporate\)
- Re: from_epoch for DateTime::La... Rick Measham
- RE: from_epoch for DateTime::LazyIn... Garrett, Philip \(MAN-Corporate\)
- RE: from_epoch for DateTime::LazyIn... Garrett, Philip \(MAN-Corporate\)
- RE: from_epoch for DateTime::LazyIn... Garrett, Philip \(MAN-Corporate\)
- Re: from_epoch for DateTime::La... Rick Measham
- RE: from_epoch for DateTime... Garrett, Philip \(MAN-Corporate\)
- Re: from_epoch for Date... Rick Measham
- Re: from_epoch for... Dave Rolsky
- RE: from_epoch for DateTime::LazyIn... Garrett, Philip \(MAN-Corporate\)