PHP time function

use PHP to determine whether a time exceeds 6 hours compared with the current time

Php
Mar.06,2021

compare, S (seconds according to timestamp)

$now_time = time()
$old_time = time(timestamps) //timestamps 
if($now_time-(60*60*6) > $old_time){
    //6
}

$time_6hours_ago = strtotime('-6hour');  -sharp//6
$compare_time; //
if($time_6hours_ago > $compare_time){
    -sharp//6
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38388-2c0ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38388-2c0ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?