Retrieve the name of the timezone.
<?php $tz=timezone_open(“Europe/Paris”); echo timezone_name_get($tz); ?> |
The timezone_name_get() function returns the timezone’s name.
timezone_name_get(object) |
Parameter |
Description |
object |
Required. Specifies a DateTimeZone object. |
Return Value: |
Returns a timezone name from the available list of timezones. |
PHP Version: |
5.2+ |