public function getYear($timestamp = false)
    {
        if (!$timestamp) {
            $timestamp = $this->dateTime->getTimestamp();
        }

        return date('Y', $timestamp);
    }
public function getYear($timestamp = false)
    {
        if (!$timestamp) {
            $timestamp = $this->dateTime->getTimestamp();
        }

        return date('Y', $timestamp);
    }
public function getYear ( $ timestamp = false ) { if ( ! $ timestamp ) { $ timestamp = $ this -> dateTime -> getTimestamp ( ) ; } return date ( 'Y' , $ timestamp ) ; }
returns current year

This method is intend to return the current year.

@param mixed $timestamp The timestamp to use as date/time-base

@author Benjamin Carl <opensource@clickalicious.de>
@return string Year
@access public
returns current year