DateTime DWIM

cwest on 2003-07-31T14:44:48

It would be just dandy if this DWIM.

my $date = DateTime->now;
$date->set( hour => 9.5 );


Alas, it just int()izes. And of course I assume that what I expect is what everyone else expects, too, that hour and minute be set to 9 and 30 respectively.

Posted from caseywest.com, comment here.