src/Date/DateUtil.php
public function isYearInDateFormat(string $dateFormat)
    {
        return false !== strpos($dateFormat, 'o') ||
            false !== strpos($dateFormat, 'Y') ||
            false !== strpos($dateFormat, 'y');
    }
public function isYearInDateFormat(string $dateFormat)
    {
        return false !== strpos($dateFormat, 'o') ||
            false !== strpos($dateFormat, 'Y') ||
            false !== strpos($dateFormat, 'y');
    }
public function isYearInDateFormat ( string $ dateFormat ) { return false !== strpos ( $ dateFormat , 'o' ) || false !== strpos ( $ dateFormat , 'Y' ) || false !== strpos ( $ dateFormat , 'y' ) ; }
Checks if a form of year is available in the date format.

@param string $dateFormat

@return bool
Checks if a form of year is available in the date format .