1 2 3 4 5 6
<?php $minutes = '2011-08-31 21:02:15'; echo (int)((time()-strtotime($minutes))/60); ?>
1
264