01-19-2008, 11:14 AM
|
#6 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
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.
|
|
|
|