well the first example will do the leap year for you. Or you can do:
// get timestamp for the beginning of this day, 810 years ago
$oldtime = mktime(0,0,0,date('m'),date('d'),date('Y')-810);
you could also make this info a function
function makeOldTime( $timestamp ){
$oldtime = mktime( date('g', $timestamp), date('i', $timestamp), date('s', $timestamp), date('m', $timestamp), date('d', $timestamp), date('Y', $timestamp) - 810 );
return $oldtime;
}
probably more elegant ways of doing it too, but that'll get the job done. So you can store timestamps as usual, but pass them to this function if you want them to be converted to 810 years ago.