DateTime::getTimezone

PHP 5 >= 5.2.1, PHP 7, PHP 8
DateTime::getTimezone - Return time zone relative to given DateTime
Manual
Code Examples

Example #1 DateTime::getTimezone example

Result: Europe/London
PHP Version:


Function DateTime::getTimezone:

Date and Time Functions

Most used PHP functions