 <p>Use <code>date("Y")</code></p> <pre><code>&lt;?php $time = strtotime("1 Jan 2001 1:11:11"); echo "Years since time: ".(date("Y") - date("Y", $time)); </code></pre> <p><a href="http://sandbox.phpcode.eu/g/220fe/1" rel="nofollow">http://sandbox.phpcode.eu/g/220fe/1</a></p>