[ create a new paste ] login | about

Link: http://codepad.org/3wV29b5i    [ raw code | output | fork ]

PHP, pasted on May 25:
1
2
3
4
5
<?php
$hour = date('H');
$minute = (date('n')>30)?'30':'00';
echo "$hour:$minute";
?>


Output:
1
16:00


Create a new paste based on this one


Comments: