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
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
> 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
@listserv.ActiveState.com
Subject: OT -- Re: time manipulation
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.
&
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-
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.