public static function allHallowsDay($year) { $time = mktime(0, 0, 0, 11, 6, $year); $saturday = \GO\Base\Util\Date::get_last_weekday($time, -1); return date('Y-m-d', $saturday); }