Hello All,
For some reason using DateTime-now doesn't get effected by using the
Test::MockTime module to change the time. The Test module overrides
the time builtin, which seems to be what DateTime::now is using.
#!/usr/bin/perl
use DateTime;
use Test::MockTime qw/:all/;
my $start_time
Mark Pitchless wrote:
For some reason using DateTime-now doesn't get effected by using the
Test::MockTime module to change the time.
It does if you load Test::MockTime before you load DateTime.
$ perl -MDateTime -MTest::MockTime=:all -lwe 'print time;print