- abs: documentation ( source)
- time: documentation ( source)
- round: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
- date_parse_from_format: documentation ( source)
<?php
echo "The date is : " . print_r(date_parse_from_format('Y-d-m H:i:s', '2014-02-05 5:22:35'), true);
$date = strtotime(date('Y-d-m H:i:s', '2014-02-05 5:22:35'));
$now = time();
echo round(abs($now - $date) / 60,2). " minutes ago";