<?php namespace refill; class functional { public static function isDay() { $cur = time(); $start = strtotime(date('Y-m-d',$cur)); return ($cur > $start + 3600 * 6); } }