The date_default_timezone_get Function
The date_default_timezone_get
function
outputs the timezone set in the script.
Syntax
date_default_timezone_get();
Example
Let's output the time zone used in the script:
<?php
echo date_default_timezone_get();
?>
Code execution result:
'Europe/Moscow'
See Also
-
the
date_default_timezone_set
function,
which sets the timezone