DateTimeZone::__construct
DateTimeZone::__construct - Creates new DateTimeZone object
Code Examples
Example #1 Catching errors when instantiating DateTimeZone
Result: DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone (Mars/Phobos)
DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone (Jupiter/Europa)