The code for the date and time function:
function date_and_time($format,$timestamp) { $date_and_time = date($format,$timestamp); return $date_and_time; } <
You can use the this function to set default time zone:
date_default_timezone_set('Europe/London');