Hàm date_default_timezone_get

Hàm date_default_timezone_get xuất ra múi giờ được đặt trong script.

Cú pháp

phpdate_default_timezone_get();

Ví dụ

Hãy xuất múi giờ đang được sử dụng trong script:

php<?php
  echo date_default_timezone_get();
?>

Kết quả thực thi mã:

php'Europe/Moscow'

Xem thêm