How do I add time using Date::Calc module in perl? -


i have 2 sets of variables have day,hours,minutes , seconds stored in each of them. $startday,$endday,$starthour,$endhour, $startmin, $endmin,$startsec,$endmin,$endsec

how add add these fields sum of 2 times.

use date::calc; use strict; use warnings;   ($totaldays,$totalhours,$totalmin,$totalseconds)= add_delta_dhms($startday,$starthour, $startmin,$startsec,$endday,$endhour,$endmin,$endsec);    

i tried , didn't work. can me this?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -