On Fri, April 20, 2007 4:37 am, Sebe wrote:
> $seconds = (($job['run_time'] - 60) * $minutes);
This is still just plain wrong...
Use what the people are telling you to use, because it's right.
:-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from som
On Fri, April 20, 2007 3:55 am, Sebe wrote:
> maybe someone can figure why sometimes i get negative values for
> seconds..
>
> $job['finished'] and $job['finished'] are both unix timestamp.
> i subtract both to get how many seconds some thing took.. well you
> should be able to read the rest. somet
Edward Kay wrote:
maybe someone can figure why sometimes i get negative values for seconds..
$job['finished'] and $job['finished'] are both unix timestamp.
i subtract both to get how many seconds some thing took.. well you
should be able to read the rest. sometimes it works fine but other times
>
> maybe someone can figure why sometimes i get negative values for seconds..
>
> $job['finished'] and $job['finished'] are both unix timestamp.
> i subtract both to get how many seconds some thing took.. well you
> should be able to read the rest. sometimes it works fine but other times
> i get n
Don't know your problem but:
if $totalTime is total length in seconds
$minutes = floor($totalTime / 60);
$seconds = $totalTime % 60;
/Fredrik
Sebe skrev:
maybe someone can figure why sometimes i get negative values for seconds..
$job['finished'] and $job['finished'] are both unix timestamp.
maybe someone can figure why sometimes i get negative values for seconds..
$job['finished'] and $job['finished'] are both unix timestamp.
i subtract both to get how many seconds some thing took.. well you
should be able to read the rest. sometimes it works fine but other times
i get negative se
6 matches
Mail list logo