PHP timezone_open() Function

ຄວາມຄືນ

ສ້າງວັດສະດຸ DateTimeZone ຢ່າງໃໝ່ ແລະ ກັບຄືນຊື່ Time Zone:

<?php
$tz=timezone_open("Asia/Shanghai");
echo timezone_name_get($tz);
?>

ຄວາມຄືນທີ່ປະຕິບັດ

ການອະທິບາຍ ແລະ ການນໍາໃຊ້

timezone_open() ສ້າງວັດສະດຸ DateTimeZone ຢ່າງໃໝ່.

ຂອບຂໍ້ຄວາມ

timezone_open(timezone);
ປະເພດ ການອະທິບາຍ
timezone

ສະເພາະ. ປະກອບ Time Zone.

ຂໍ້ສັງເກດ:ການເບິ່ງລາຍການ Time Zone ທີ່ PHP ສະໜັບສະໜູນ..

ຂໍ້ມູນດ້ານເຕັກນິກ

ການກັບຄືນ: ຖ້າປະສົບຜົນສຳເລັດ ຈະກັບຄືນວັດສະດຸ DateTimeZone, ຖ້າບໍ່ປະສົບຜົນສຳເລັດ ຈະກັບຄືນ FALSE.
PHP Version: 5.2+