PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php echo get_dt_range('2022-07-04'); function get_dt_range($end_date) { date_default_timezone_set('Europe/Moscow'); $cur_date = time(); $end_date = strtotime($end_date); $diff = $end_date - $cur_date; $minutes = floor($diff / 60); $diff_hour = floor($minutes / 60); $diff_minute = $minutes - ($diff_hour * 60); $time_left = ($diff_hour . ":" . $diff_minute); return $time_left; }
Show:  
Copy Clear