1. <tfoot id='Bmaa8'></tfoot>

    1. <legend id='Bmaa8'><style id='Bmaa8'><dir id='Bmaa8'><q id='Bmaa8'></q></dir></style></legend>
        <bdo id='Bmaa8'></bdo><ul id='Bmaa8'></ul>
      <i id='Bmaa8'><tr id='Bmaa8'><dt id='Bmaa8'><q id='Bmaa8'><span id='Bmaa8'><b id='Bmaa8'><form id='Bmaa8'><ins id='Bmaa8'></ins><ul id='Bmaa8'></ul><sub id='Bmaa8'></sub></form><legend id='Bmaa8'></legend><bdo id='Bmaa8'><pre id='Bmaa8'><center id='Bmaa8'></center></pre></bdo></b><th id='Bmaa8'></th></span></q></dt></tr></i><div id='Bmaa8'><tfoot id='Bmaa8'></tfoot><dl id='Bmaa8'><fieldset id='Bmaa8'></fieldset></dl></div>
    2. <small id='Bmaa8'></small><noframes id='Bmaa8'>

      将 Unix 时间戳转换为时区?

      Convert Unix Timestamp to time zone?(将 Unix 时间戳转换为时区?)

      <small id='m6lBs'></small><noframes id='m6lBs'>

    3. <i id='m6lBs'><tr id='m6lBs'><dt id='m6lBs'><q id='m6lBs'><span id='m6lBs'><b id='m6lBs'><form id='m6lBs'><ins id='m6lBs'></ins><ul id='m6lBs'></ul><sub id='m6lBs'></sub></form><legend id='m6lBs'></legend><bdo id='m6lBs'><pre id='m6lBs'><center id='m6lBs'></center></pre></bdo></b><th id='m6lBs'></th></span></q></dt></tr></i><div id='m6lBs'><tfoot id='m6lBs'></tfoot><dl id='m6lBs'><fieldset id='m6lBs'></fieldset></dl></div>

        • <bdo id='m6lBs'></bdo><ul id='m6lBs'></ul>

              <legend id='m6lBs'><style id='m6lBs'><dir id='m6lBs'><q id='m6lBs'></q></dir></style></legend>

              <tfoot id='m6lBs'></tfoot>
                <tbody id='m6lBs'></tbody>

              1. 本文介绍了将 Unix 时间戳转换为时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个设置为 +5 的 unix 时间戳,但我想将其转换为 -5,即 EST 标准时间.我只想在那个时区生成时间戳,但我从另一个来源获取它,它把它放在+5.

                I have a unix timestamp that is set to +5, but I'd like to convert it to -5, EST Standard time. I would just make the time stamp be generated in that time zone, but I'm grabbing it from another source which is putting it at +5.

                当前未修改的时间戳被转换为日期

                Current Unmodified Timestamp Being Converted Into A Date

                <? echo gmdate("F j, Y, g:i a", 1369490592) ?>
                

                推荐答案

                使用 DateTime 和 DateTimeZone:

                $dt = new DateTime('@1369490592');
                $dt->setTimeZone(new DateTimeZone('America/Chicago'));
                echo $dt->format('F j, Y, g:i a');
                

                这篇关于将 Unix 时间戳转换为时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                datetime to timestamp(日期时间到时间戳)
                PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)

                    <small id='LVntp'></small><noframes id='LVntp'>

                    • <legend id='LVntp'><style id='LVntp'><dir id='LVntp'><q id='LVntp'></q></dir></style></legend>
                        <tbody id='LVntp'></tbody>

                      1. <i id='LVntp'><tr id='LVntp'><dt id='LVntp'><q id='LVntp'><span id='LVntp'><b id='LVntp'><form id='LVntp'><ins id='LVntp'></ins><ul id='LVntp'></ul><sub id='LVntp'></sub></form><legend id='LVntp'></legend><bdo id='LVntp'><pre id='LVntp'><center id='LVntp'></center></pre></bdo></b><th id='LVntp'></th></span></q></dt></tr></i><div id='LVntp'><tfoot id='LVntp'></tfoot><dl id='LVntp'><fieldset id='LVntp'></fieldset></dl></div>

                          <bdo id='LVntp'></bdo><ul id='LVntp'></ul>
                          <tfoot id='LVntp'></tfoot>