On Sun, Mar 27, 2011 at 12:52:36AM -0500, Adam wrote: > I'm proposing a module named "Date::FromToday". > > It is used to calculate the date in the future/past from the localtime > the object was created. I use it for calculating file names based off > of timespan from today. Does this namespace look valid? > > > Simple usage with defaults > my $date = Date::FromToday->new( move => -1 ); > my $date_string = $date->date_string; > # $date_string = '03_26_2011'
How does this differ from my $date = DateTime->today->add( days => -1 ); ? -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue http://shadowcat.co.uk/blog/matt-s-trout/ http://twitter.com/shadowcat_mst/ Email me now on mst (at) shadowcat.co.uk and let's chat about how our Catalyst commercial support, training and consultancy packages could help your team.