DateTimeZone::__constructtimezone_openCreates new DateTimeZone object
&reftitle.description;
&style.oop;publicDateTimeZone::__constructstringtimezone&style.procedural;DateTimeZonetimezone_openstringtimezone
Creates new DateTimeZone object.
&reftitle.parameters;
timezone
One of timezones.
&reftitle.returnvalues;
Returns DateTimeZone on success.
&return.falseforfailure.style.procedural;
&reftitle.errors;
This method throws Exception if the timezone supplied is not
recognised as a valid timezone.
&reftitle.examples;
Catching errors when instantiating DateTimeZone
getMessage() . ' ';
}
}
?>
]]>
&example.outputs;