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
date_default_timezone_get();
Ví dụ
Hãy xuất múi giờ đang được sử dụng trong script:
<?php
echo date_default_timezone_get();
?>
Kết quả thực thi mã:
'Europe/Moscow'
Xem thêm
-
hàm
date_default_timezone_set,
thiết lập múi giờ