On Mon, Jan 13, 2003 at 09:14:25PM -0600, Dave Rolsky wrote: > On Mon, 13 Jan 2003, Matthew Simon Cavalletto wrote: > > Looking at the two alternatives, does the second really seem clearer? > > > > use DateTime; > > my $dt = DateTime->new( 'MySQL' => $mysql_dt ); > > print $dt->to_string( 'MySQL' ); > > > > use DateTime; > > use DateTime::Parse::MySQL; > > my $dt = DateTime->from_mysql_datetime( $mysql_dt ); > > print $dt->to_mysql_string(); > > Um, yeah, the second is _much_ clearer. And its less error prone as well! Um, no it isn't. > Your first option is not on the table. Let's put it on the table then. Much better than the other options. MartijnThread Previous | Thread Next