← All docs

date_default_timezone_get()

Gets the default timezone.

date_default_timezone_get()

function date_default_timezone_get(): string

Gets the default timezone.

Parameters: none.

Returns: string

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how date_default_timezone_get is implemented in the compiler, see the internals page.