How can i remove 5 minutes from current date() in PHP
PHP Function:
strtotime()
Example:
echo date('Y-m-d H:i:s', strtotime('-5 minutes'));
Try this It's solve your problem
$format = "h:i A";
date_default_timezone_set('Asia/Kolkata');
echo date($format, strtotime("-5 minute"));