30 seconds you're struggling with, just add +30 to the conditional value, increasing the value of $djs['currenttime'] .
You can use the time() function to get the actual time. I assume djs['currenttime'] is a value retrieved from the database. Therefore, the comparison will be as follows:
if(time() > $djs['currenttime'] + 30){ //actions here; }
time() returns the number of seconds since January 1, 1970 00:00:00 GMT, therefore, for this, the format of the variable $djs['currenttime'] must also be a unix timestamp. If not, you need to first convert one of them to the appropriate format.
source share