in reply to Re: Re: Re: Date conversion with Class::DBI
in thread Date conversion with Class::DBI
My issue is that I have customizable tables that I'm trying to handle generically and I wanted to avoid having to treat date columns differently. Either by calling methods or writing wrappers. I want the mutator to accept D/M/Y strings, even sloppy ones. Given all this, is has_a still what I'm after? Or is changing the accessor/mutator? (Or may I should just change my requirements)
Also, this was partly an exercise in understanding Class::DBI for me. I didn't expect the inflate method to be used via the mutator.
Thanks a lot anyway,
Brad
PS.You could probably write a custom module that inherits from Time::Piece::MySQL.
Note that Time::Piece::MySQL
doesn't actually inherit from Time::Piece. Time::Piece is
a difficult base class.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Date conversion with Class::DBI
by cees (Curate) on Jul 08, 2003 at 04:55 UTC | |
by bsb (Priest) on Jul 08, 2003 at 08:59 UTC |