<bdo id='fs9ie'></bdo><ul id='fs9ie'></ul>

  • <small id='fs9ie'></small><noframes id='fs9ie'>

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

    <tfoot id='fs9ie'></tfoot>
    <legend id='fs9ie'><style id='fs9ie'><dir id='fs9ie'><q id='fs9ie'></q></dir></style></legend>

      1. 为什么时间戳限制为 2038?

        Why do timestamps have a limit to 2038?(为什么时间戳限制为 2038?)

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

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

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

              <legend id='Kifa3'><style id='Kifa3'><dir id='Kifa3'><q id='Kifa3'></q></dir></style></legend>
              • <bdo id='Kifa3'></bdo><ul id='Kifa3'></ul>
                1. 本文介绍了为什么时间戳限制为 2038?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我刚刚在运行日历脚本时发现,PHP 中的时间戳限制为 2038.这到底是什么意思?为什么是 2038 而不是 2050 或 2039?如果时间戳只计算给定日期(1970 年)的秒数,为什么要限制?

                  I just found out, running a calendar script, that timestamps in PHP has a limit to 2038. What does it really mean? Why is it 2038 instead of 2050 or 2039? Why a limit if timestamps just count seconds from a given date (1970)?

                  推荐答案

                  限制是由大多数 C 库用于表示该计数的 4 字节有符号整数强加的.快速数学(假设 365 天年,不完全正确):

                  The limit is imposed by the 4 byte signed integers that most C libraries use for representing that count. Quick math (assumes 365 day years, not exactly correct):

                  2147483648 seconds ~ 68.1 years
                  

                  这也意味着下限约为 1900.一些库已经开始引入 64 位 epoch 计数,但目前还很少.

                  This also implies a lower limit of ~1900. Some libraries have started to introduce 64 bit epoch counts, but they are few and far between for the moment.

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

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

                  相关文档推荐

                  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时间戳之间的天数)
                  <tfoot id='gYTMI'></tfoot>
                  • <bdo id='gYTMI'></bdo><ul id='gYTMI'></ul>
                    1. <small id='gYTMI'></small><noframes id='gYTMI'>

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

                              <tbody id='gYTMI'></tbody>

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