/** * @return int */ public static function getTime() { if (K::app() instanceof K_Task) { return time(); } return $_SERVER['REQUEST_TIME']; }