I just got back from Perl Whirl.  Having spent most of the last week plugging DT as a 
replacement for many of the examples given in the talks, I think we need a converting 
to DT section in the FAQ or a separate document dedicated to this.

For example (I saw this in many presentations ):

use POSIX qw( strftime );

my $time = strftime( "%Y-%m-%d %H:%M:%S", localtime() );

becomes:

use DateTime;

my $time = DateTime->now->strftime( "%Y-%m-%d %H:%M:%S" );

-J

--

Reply via email to