X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP timezone_name_get() Function

PHP Date/Time PHP Date/Time Reference

Example

Return the name of the timezone:

<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>

Run example »

Definition and Usage

The timezone_name_get() returns the name of the timezone.


Syntax

timezone_name_get(object);

Parameter Description
object Required. Specifies a DateTimeZone object

Technical Details

Return Value: Returns a timezone name from the list of timezones
PHP Version: 5.2+


PHP Date/Time PHP Date/Time Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook