There are two timestamps.
echo $time1;//The result is "2009-05-02 22:09:28"
echo $time2;//The result is "2009-05-04 20:07:19“;
How can I get the interval between $time1 and $time2?
When I set
$time3=$time2-$time1;
I get 0.
Please advise.
There are two timestamps.
echo $time1;//The result is "2009-05-02 22:09:28"
echo $time2;//The result is "2009-05-04 20:07:19“;
How can I get the interval between $time1 and $time2?
When I set
$time3=$time2-$time1;
I get 0.
Please advise.
$a_week_ago = time() - 604800;
$now = time();
$a_week_later = time() + 604800;
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks