On Thu, 15 Jul 2004, Michael G Schwern wrote: > Let's say I've got a simple DateTime subclass with some local extras > attached: > > package My::DateTime; > use base 'DateTime'; > > sub first_of_the_month { > my $self = shift; > $self->set(day => 1); > } > > How do I get the DateTime::Format modules to return My::DateTime objects > instead of DateTime?
Doesn't look like anyone ever responded. There is no way to do this currently. You can always just jam the method into the DateTime namespace. That's pretty ugly though. I guess we could make all the DT::Format modules take a class parameter. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/