DateTimeZone::__construct timezone_open Creates new DateTimeZone object &reftitle.description; &style.oop; public DateTimeZone::__construct stringtimezone &style.procedural; DateTimeZonetimezone_open stringtimezone 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 <classname>DateTimeZone</classname> getMessage() . '
'; } } ?> ]]>
&example.outputs;