epoch1 has asked for the wisdom of the Perl Monks concerning the following question:
I believe the final $delta value should be 4 (days) but it is 0. Does anyone know why this is happening and how I can rectify this? Thanks monks.$expected_date = '2016-11-05 14:00'; $actual_date = '2016-11-09 14:00'; my $delta = DateCalc($expected_date,$actual_date); #print $delta = 0:0:0:0:96:0:0 $delta = Delta_Format($delta,0,"%dh"); #print $delta = 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date Manip Delta_Format
by SBECK (Chaplain) on Nov 09, 2016 at 14:40 UTC | |
by SBECK (Chaplain) on Nov 09, 2016 at 14:43 UTC | |
by epoch1 (Acolyte) on Nov 11, 2016 at 09:23 UTC |