224 of 410 menu

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

byenru