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
Post a Comment