- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$json = file_get_contents( "http://json-time.appspot.com/time.json?tz=Europe/London" );
$obj = json_decode($json);
$timenow = $obj->{'datetime'};
$date = DateTime::createFromFormat('D, d M Y H:i:s O', $timeNow);
echo $date->format('Y-m-d H:i:s');
?>