DateTimeZone::__construct

DateTimeZone::__construct - Creates new DateTimeZone object
Manual
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)
PHP Version:


Function DateTimeZone::__construct:

Date and Time Functions

Most used PHP functions