View Single Post
Old 01-19-2008, 11:14 AM   #6 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

You'll have to perform the calculations yourself...but why do you think it's such a pain? It's simple math. Check this out:

PHP Code:
$today time();
$tommorrow $today + ( 60 60 24 );

$sec_diff $tommorrow $today;
$hour_diff ceil$sec_diff / ( 60 60 ) ); // because an hour has 60 minutes, with 60 seconds each

echo $hour_diff// this is 24 (hours) 
This example is very simple, because I just wanted to illustrate the technique itself, so it can be easy to understand).
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote
The Following User Says Thank You to xenon For This Useful Post:
Aaron (01-19-2008)