I am trying to make a timestamp function that checks which displays a time if it has been less than 24 hours and a date if it has been more. If anybody knows of a prebuilt way to do this please let me know.
Anyways, I've started with this simple php which is suppose to return a number less than 86400 if $temprow1 or 2 are less than 86400 seconds from now, or echo full if it has been over a day. This code outputs both as numbers, which it should not. Can somebody please help me figure out what's wrong. Thanks!
$temprow1 = 1278867245;
$temprow2 = 1258567245;
$tempvar008 = time()-$temprow1;
$tempvar009 = time()-$temprow2;
if($tempvar008 << 86400){echo $tempvar008;}else{echo 'full';}
echo '<br>';
if($tempvar009 << 86400){echo $tempvar009;}else{echo 'full';}