Possible Duplicate:
How to calculate the difference between two dates using PHP?
how can i check in php, the date difference with the following given php variables?
$year = 2012;
$month = 5;
$day = 20;
$hour = 23;
$min = 15;
$sec = 0;
what i'm looking to do
i want to compare the php variables shown above with actual current time, and then output the difference between the current time and the php varables, in days or even hours? which is the best and fastest way in going about doing something like this in php?