w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Check if current time is within range of specified time
<?php

$cur_time = time();
$from_time = strtotime("-1 hour", $cur_time);
echo round(abs($cur_time - $from_time) / 60,2). " minute";

?>

This will provide the difference in minutes. Please note this was similarly answered in this post:

How to get time difference in minutes in PHP





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.