Hello. It was necessary to generate a random date from current to specific. The Data :: Random module has similar functionality, but does not work complaining about the wrong range.
max date is later than min date
Code identical to the example from the page of the module on cpan
use Data::Random qw(:all); my $date = rand_date( min => 'now', max => '2008-9-21' ); print $date; Perhaps there are some alternative options? Modules?
now. Try to specify the minimum date for the test exactly and less than the maximum. - Mark Shevchenko