Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

cwest (1514)

  (email not shown publicly)
AOL IM: caseyrwest (Add Buddy, Send Message)

Perl geek.

Journal of cwest (1514)

Thursday July 31, 2003
09:44 AM

DateTime DWIM

[ #13810 ]

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, comment here.

New comment creation has been disabled on this discussion.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login
Loading... please wait.