【问题标题】:codeigniter get time zone offsetcodeigniter 获取时区偏移量
【发布时间】:2010-10-29 07:03:46
【问题描述】:

我需要从 codeigniter 中的时区数据中获取时区偏移值。我拥有的时区是 UM12、UM11、.... UTC.... UP10 UP11 UP12 ..... 我需要精确的偏移值。有没有直接的方法?

【问题讨论】:

    标签: php datetime codeigniter


    【解决方案1】:

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

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

    或者试试

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

    希望这会有所帮助;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-27
      • 1970-01-01
      • 2012-11-28
      • 2016-05-07
      • 2013-10-15
      • 2015-12-20
      • 1970-01-01
      • 2018-03-15
      相关资源
      最近更新 更多