Re: time() TIMER in seconds or just numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/3/30 Andrew Williams <andrew4williams@xxxxxxxxx>:
> what does time();
>
> $t1 = time();
>
> {
>
> do something
> }
> $t2 = time();
>
> $end_time = $t2 - $t1;
> echo $end_time;
>
> what does $end_time represent?

The number of seconds it took to "do something".

> how do you determine the next 5 mins?

Assuming you mean "what will time() return in 5 minutes time?"...

$five_minutes_time = time() + 300; // 300 seconds in 5 minutes

If you mean something else please try rephrasing the question.

-Stuart

-- 
http://stut.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux