- str_replace: documentation ( source)
<?php
//target time zone
$target_time_zone = new DateTimeZone('America/Los_Angeles');
//find kolkata time
$date_time = new DateTime('now', $target_time_zone);
//get the exact GMT format
echo 'GMT '. str_replace(":00","",$date_time->format('P'));