You can try converting $a and $b into secs, and do the math from there. 
Then convert back to a string format again.

Alejandro Santillan wrote:
> I would like to know if there exists some module that is able con add and
> substract times.
>
> For example, I want to see the time in seconds between the beginning and
> ending of an application.
> Something like this:
>
> $a="13:12:01";
> $b="13:02:01";
>
> $c=$a-$b;
>
> I would like $c to be 00:10:00, or 600 secs. Is some module able to do this
> task?
>
> Alejandro
>
> _______________________________________________
> Perl-Win32-Users mailing list
> Perl-Win32-Users@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>   

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to