Funksioni date_default_timezone_get
Funksioni date_default_timezone_get
nxjerr zonën kohore të vendosur në skript.
Sintaksa
date_default_timezone_get();
Shembull
Le të nxjerrim zonën kohore që përdoret në skript:
<?php
echo date_default_timezone_get();
?>
Rezultati i ekzekutimit të kodit:
'Europe/Moscow'
Shihni gjithashtu
-
funksionin
date_default_timezone_set,
i cili vendos zonën kohore