public static function isThisYear($time): bool
    {
        return (self::factory($time)->format('Y') === self::factory()->format('Y'));
    }
public static function isThisYear($time): bool
    {
        return (self::factory($time)->format('Y') === self::factory()->format('Y'));
    }
public static function isThisYear ( $ time ) : bool { return ( self :: factory ( $ time ) -> format ( 'Y' ) === self :: factory ( ) -> format ( 'Y' ) ) ; }
Returns true if date passed is within this year.

@param string|int $time
@return bool
Returns true if date passed is within this year .