![]() |
Subtracting Time from a Time - Help
Code:
<?phphttp://gyazo.com/fb3c95029c79da2a1a0...png?1349530088 Problem is it doesn't subtract is just displays 0 Anyhelp? |
You cannot subtract strings.
$today should be time(), and $uptime MUST be an integer. Then you can subtract and create $uptime1. That will give you the number of seconds $uptime is which you can format into whatever display. If you have 5.3+, you can use the dateinterval. PHP Code:
|
| All times are GMT +1. The time now is 08:56 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.