开发者

codeigniter get time zone offset

i need to get the timezone offset value from the timezone data in codeigniter.开发者_如何学运维 Timezones i have are UM12, UM11, .... UTC.... UP10 UP11 UP12..... i need exact offset values. is there any direct method?


$this->load->helper('date');

echo timezone('UM10'); //  will give -10

or try

print_r(timezone()); // List the entire timezone array

Hope this will help ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜