- strtotime: documentation ( source)
<?php
echo "Now: ", $now = strtotime("now"), "\n";
echo "Then: ", $then = strtotime("now -20 years"), "\n";
echo $now2 = strtotime("now +1 year"), "\n";
echo $then2 = strtotime("now -19 years"), "\n";
echo "Dif 1 ", $now-$then, "\n";
echo "Dif 2 ", $now2-$then2, "\n";