I would like to take control of the output generated in seconds using perl. I would like to show the time (in seconds) in the form of days, hours, minutes and seconds to make it human readable format.
my $start = time;
<some other perl codes>
my $duration = time - $start;
print "Total Execution time: $duration s\n";
Output is 311052 s
Required Output is 3 days 14 hours 24 minutes 12 seconds