<?php function getTimeLeft($start, $minutes) { $endTime = strtotime( '+'.$minutes." minutes", $start); return strtotime($endTime) - strtotime($start); } echo getTimeLeft('2015-09-06 21:00:39', '180');
You have javascript disabled. You will not be able to edit any code.