Converts Time according to timezone parameter.
public static convertDateTime ( DateTime | string | integer $value, string $timezone, string $format = 'M j, Y H:i:s' ) : string | ||
$value | DateTime | string | integer | DateTime object or Unix Timestamp or string that represents time. |
$timezone | string | TimeZone |
$format | string | Format |
return | string | Returns updated time in given format. |