PHP reste MINS a DateTime
$datetime_from = date("Y-m-d H:i", strtotime("-45 minutes", strtotime($thestime)));
Thoughtful Tiger
$datetime_from = date("Y-m-d H:i", strtotime("-45 minutes", strtotime($thestime)));