<?php date_default_timezone_set('UTC'); $date='1555133436'; $next_date = new DateTime("@$date"); // find out when they can next access the data $next_date->modify('+1 day'); $now = new DateTime(); // now find out how long they must wait $wait = $next_date->diff($now); echo $wait->format("You must wait %h hours and %i minutes to access the data again\n");
You have javascript disabled. You will not be able to edit any code.