1 2 3
<?php echo date('Y-m-d H:i:s', mktime(date('h'), round(date('i') / 30) * 30, 0));
1
2013-04-14 12:30:00