I'm trying to get the difference between two linux times.  I want to show the difference in months.   I am getting one Linux time from the database and comparing it against time();.
$sql_sms_transactions = "SELECT MAX(`sendtime`) FROM `sms_transaction`  where customer_id='$customer_id'";
    $result_sms_transactions = mysql_query($sql_sms_transactions);
    while($row2=mysql_fetch_assoc($result_sms_transactions))
{
    $status = $row2['MAX(`sendtime`)'];
    //print $status;
    $month = date('m', $status); // 1-12
    $year = date('YW', $status);
    //print $month;
    //print $year;
    $current=time();
    $monthcurrent = date('m', $current); // 1-12
    $yearcurrent = date('YW', $current);
    //print $monthcurrent;
    //print $yearcurrent;
}
 
     
    