Assume
$time = '2010-05-17 02:49:30'
How do I do the following in PHP:
1) Check if it has been more than one week from now?
2) Assuming a βfalseβ on (1), find out how much more time is left before the mark of the week, rounded to the remaining days and hours.
I know this is pretty simple, but it uses a very specific syntax. Never playing with time calculations before, I would appreciate some recommendations.
Thanks!
php
Rudi
source share