my $today = DateTime->today;

Like now(), but would set the year, month and day components only.

Useful for date rather than datetime calculations, and nicer than:

my $today = DateTime->now;
   $today->truncate(to => "day");

Many thanks,
-- 
Rich
[EMAIL PROTECTED]

Reply via email to