jodm on 04/07/10
Last Edited at 04/07/10 02:46am
function roundTime($blnRoundDown = true) { $seconds = time(); $rounded_seconds = ($blnRoundDown) ? floor($seconds / (5 * 60)) * (5 * 60) : round($seconds / (5 * 60)) * (5 * 60); return date('H:i', $rounded_seconds); }
Report this snippet Tweet
Comment:
You need to login to post a comment.