[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-datetime
Subject: Formatters and DateTime subclasses
From: Michael G Schwern <schwern () pobox ! com>
Date: 2004-07-15 19:59:53
Message-ID: 20040715195953.GA8729 () localhost ! grantstreet ! com
[Download RAW message or body]
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?
--
Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/
I knew right away that my sock and your eyebrows could be best friends.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic