PHP date default timezone get

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : date_default_ timezone_get() function

Description

The date_default_timezone_get() is used to get the default timezone, used by all date/time functions in a script.

Version

(PHP 4 and above)

Syntax

date_default_timezone_get()

Return value

A string.

Value Type : String.

Example :

  1. echo(date_default_timezone_get());  

  2. ?>  

Output :

UTC