Funksioni date_default_timezone_get

Funksioni date_default_timezone_get nxjerr zonën kohore të vendosur në skript.

Sintaksa

phpdate_default_timezone_get();

Shembull

Le të nxjerrim zonën kohore që përdoret në skript:

php<?php
  echo date_default_timezone_get();
?>

Rezultati i ekzekutimit të kodit:

php'Europe/Moscow'

Shihni gjithashtu