← All docs

timezone_open()

Creates a DateTimeZone from an identifier.

timezone_open()

function timezone_open(string $timezone): mixed

Creates a DateTimeZone from an identifier.

Parameters:

  • $timezone (string)

Returns: mixed

Availability

  • Compiled (AOT): supported through the Elephc compiler.
  • eval() (magician interpreter): supported through the procedural date/time alias dispatcher.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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