<?php
        $time1 
= (int)time();
        
$time2 = (int)1366627990;

        
$diff = (int)$time1-$time2;

        echo 
round(($diff/60/60/24)).' days between dates.';
    
?>